| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- <?php
 
- namespace app\api\controller\h5;
 
- use app\hander\HelpHander;
 
- use think\Controller;
 
- use think\Db;
 
- use think\Exception;
 
- class Worker extends Base
 
- {
 
-       //推荐护工
 
-     public function hot(){
 
-         $model = new \app\common\model\Worker();
 
-         $data = $model->hotList($this->orgId);
 
-         HelpHander::success($data);
 
-     }
 
-     // 护工列表
 
-     public function lists(){
 
-         $page = input('page',1);
 
-         $size = input('size',10);
 
-         $model = new \app\common\model\Worker();
 
-         $res = $model->apiLists($this->orgId,[],$page,$size);
 
-         HelpHander::success($res['rows'],'操作成功');
 
-     }
 
-     // 用户下单
 
-     public function order(){
 
-         $model = new \app\common\model\PhOrders();
 
-         $res = $model->bookOrder();
 
-         if(!$res){
 
-             HelpHander::error($model->getError());
 
-         }
 
-         HelpHander::success($res,'操作成功');
 
-     }
 
-     public function userInfo(){
 
-         $info  = Db::name('wxuser')
 
-             ->where('id',$this->userId)
 
-             ->find();
 
-         HelpHander::success($info);
 
-     }
 
- }
 
 
  |