AppIndex.php 427 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use think\Db;
  5. /**
  6. * 首页接口
  7. */
  8. class Appindex extends Api
  9. {
  10. protected $noNeedLogin = ['*'];
  11. protected $noNeedRight = ['*'];
  12. /**
  13. * 首页
  14. *
  15. */
  16. public function getBanner()
  17. {
  18. $where['status']=1;
  19. $banner = Db::name('message_read')->where($where)->select();
  20. $this->success('',$banner);
  21. }
  22. }