...
|
...
|
@@ -87,11 +87,11 @@ class User extends Api |
|
|
];
|
|
|
// 抢单信息
|
|
|
$user->grab_count = [
|
|
|
'count1' => $this->getGrabCount(['user_id'=>$user['id'],'status'=>'1']), // 抢单中
|
|
|
'count2' => $this->getGrabCount(['user_id'=>$user['id'],'status'=>'2']), // 缴费中
|
|
|
'count3' => $this->getGrabCount(['user_id'=>$user['id'],'status'=>'3']), // 待确认
|
|
|
'count4' => $this->getGrabCount(['user_id'=>$user['id'],'status'=>['in','4,6']]), // 已完成/已拒绝
|
|
|
'count5' => $this->getGrabCount(['user_id'=>$user['id'],'status'=>'5']), // 售后
|
|
|
'count1' => $this->getGrabCount(['a.user_id'=>$user['id'],'a.status'=>'1']), // 抢单中
|
|
|
'count2' => $this->getGrabCount(['a.user_id'=>$user['id'],'a.status'=>'2']), // 缴费中
|
|
|
'count3' => $this->getGrabCount(['a.user_id'=>$user['id'],'a.status'=>'3']), // 待确认
|
|
|
'count4' => $this->getGrabCount(['a.user_id'=>$user['id'],'a.status'=>['in','4,6']]), // 已完成/已拒绝
|
|
|
'count5' => $this->getGrabCount(['a.user_id'=>$user['id'],'a.status'=>'5']), // 售后
|
|
|
];
|
|
|
$user->visible(['id','avatar','nickname','mobile','score','money','order_count','grab_count']);
|
|
|
$this->success('成功', $user);
|
...
|
...
|
|