...
|
...
|
@@ -271,6 +271,8 @@ class OrderGrab extends Api |
|
|
$v->visible(['id','grab_price','voucher_images','status','createtime','order']);
|
|
|
if($v->getRelation('order')){
|
|
|
$v->getRelation('order')->visible(['id','market_name','license_plate','parking_fee','deposit','score']);
|
|
|
}else{
|
|
|
$v->order = [];
|
|
|
}
|
|
|
})->toArray();
|
|
|
$this->success('成功',$data);
|
...
|
...
|
|