作者 何书鹏
1 个管道 的构建 通过 耗费 6 秒

bug修改

... ... @@ -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 = [];
}
... ...