...
|
...
|
@@ -146,6 +146,8 @@ class Message extends Api |
|
|
// 订单
|
|
|
if($v->getRelation('order')){
|
|
|
$v->getRelation('order')->visible(['id','market_name','license_plate','parking_fee','deposit']);
|
|
|
}else{
|
|
|
$v->order = [];
|
|
|
}
|
|
|
// 抢单
|
|
|
if($v->getRelation('grab')){
|
...
|
...
|
@@ -156,7 +158,11 @@ class Message extends Api |
|
|
// 抢单用户信息
|
|
|
if($v->getRelation('grab')->getRelation('user')){
|
|
|
$v->getRelation('grab')->getRelation('user')->visible(['id','nickname']);
|
|
|
}else{
|
|
|
$v->getRelation('grab')->user = [];
|
|
|
}
|
|
|
}else{
|
|
|
$v->grab = [];
|
|
|
}
|
|
|
})->toArray();
|
|
|
$this->success('成功',$data);
|
...
|
...
|
|