Index.php 581 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. use app\common\library\Token;
  5. class Index extends Frontend
  6. {
  7. protected $noNeedLogin = '*';
  8. protected $noNeedRight = '*';
  9. protected $layout = '';
  10. public function _initialize()
  11. {
  12. parent::_initialize();
  13. }
  14. public function index()
  15. {
  16. return $this->view->fetch();
  17. }
  18. public function news()
  19. {
  20. $newslist = [];
  21. return jsonp(['newslist' => $newslist, 'new' => count($newslist), 'url' => 'https://www.fastadmin.net?ref=news']);
  22. }
  23. }