...
|
...
|
@@ -153,7 +153,10 @@ class Message extends Api |
|
|
$v->getRelation('grab')->createtime = date('m/d/H:i',$v->getRelation('grab')->createtime); // 抢单时间
|
|
|
}
|
|
|
$v->getRelation('grab')->visible(['id','grab_price','createtime','voucher_images','user']);
|
|
|
$v->getRelation('grab')->getRelation('user')->visible(['id','nickname']);
|
|
|
// 抢单用户信息
|
|
|
if($v->getRelation('grab')->getRelation('user')){
|
|
|
$v->getRelation('grab')->getRelation('user')->visible(['id','nickname']);
|
|
|
}
|
|
|
}
|
|
|
})->toArray();
|
|
|
$this->success('成功',$data);
|
...
|
...
|
|