Winners.class.php 669 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Cas\Controller;
  3. use Cas\Dao\WeixinArticles;
  4. use KIF\Core\Request;
  5. /**
  6. * 获奖名单
  7. */
  8. class Winners extends Controller {
  9. public function doDefault() {
  10. $objArticles = new WeixinArticles();
  11. # 检查用户UID
  12. $checkResult = self::checkLoginStatus(false, Request::url());
  13. if (!$checkResult->isSuccess()) {
  14. self::redirect($checkResult->getData());
  15. }
  16. $uid = self::getUid();
  17. $PageData = $objArticles->get(3);
  18. $this->tpl = 'winners';
  19. $this->setOutput('title', '获奖名单');
  20. $this->setOutput('PageData', $PageData);
  21. $this->setOutput('notShowWeixinShare', true);
  22. }
  23. public function display() {
  24. return $this->render();
  25. }
  26. }