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