...
|
...
|
@@ -345,7 +345,11 @@ class Order extends Api |
|
|
// 接单时间
|
|
|
$info->getRelation('grab_success')->createtime = date('m/d/H:i',$info->getRelation('grab_success')->createtime);
|
|
|
$info->getRelation('grab_success')->visible(['id','grab_price','voucher_images','createtime','user']);
|
|
|
$info->getRelation('grab_success')->getRelation('user')->visible(['id','nickname']);
|
|
|
if($info->getRelation('grab_success')->getRelation('user')){
|
|
|
$info->getRelation('grab_success')->getRelation('user')->visible(['id','nickname']);
|
|
|
}else{
|
|
|
$info->getRelation('grab_success')->user = [];
|
|
|
}
|
|
|
}else{
|
|
|
$info->grab_success = [];
|
|
|
}
|
...
|
...
|
|