| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\api\controller;
- use think\Db;
- use fast\Tree;
- use app\common\controller\Api;
- /**
- * 首页接口
- */
- class Platform extends Api
- {
- protected $noNeedLogin = ['*'];
- protected $noNeedRight = ['*'];
- public function index()
- {
- $config=$this->config();
- $configs=config('site');
- $map['ishot']=2;
- $map['endtimesjc']=['>',time()];
- if(input('uid',0)>0){
- $map['uid']=input('uid');
- }
- $list = model('Platform')
- ->with('users')
- ->where($map)
- ->limit(10)
- ->select();
- $data=['config'=>$config,'doctor'=>$list];
- $this->success('请求成功',$data);
- }
- public function test(){
- $this->success('请求成功');
- }
- }
|