Common.php 562 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\api\controller\v1;
  3. use app\hander\HelpHander;
  4. use think\Controller;
  5. use think\Db;
  6. class Common extends Controller
  7. {
  8. public function loginBanner(){
  9. $lists = Db::name('banner')
  10. ->where('type',0)
  11. ->where('del',0)
  12. ->where('enable',1)
  13. ->order('sort asc,id asc')
  14. ->select();
  15. $lists = $lists?$lists:[];
  16. HelpHander::success($lists);
  17. }
  18. public function newAppMgr(){
  19. $ret = model('AppMgr')->appMgr(1);
  20. HelpHander::success($ret);
  21. }
  22. }