| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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=[];
- // $map['ishot']=2;
- // $map['endtimesjc']=['>',time()];
- if(input('uid',0)>0){
- $map['uid']=input('uid');
- }
- $list = model('Platform')
- // ->with('user')
- ->where($map)
- ->limit(10)
- ->select();
- $data=['config'=>$config,'doctor'=>$list];
- $this->success('请求成功',$data);
- }
- public function test(){
- $this->success('请求成功');
- }
- // 每个短剧更具贡献值分红
- public function dividend(){
- }
- }
|