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

bug修改

... ... @@ -800,7 +800,8 @@ class User extends Api
$info->getRelation('order')->visible(['id','order_sn','pay_time']);
}
if($info->getRelation('withdraw')){
$info->getRelation('withdraw')->payment_time = date('Y/m/d/H:i',$info->getRelation('withdraw')->payment_time);
$payment_time = empty($info->getRelation('withdraw')->payment_time) ? $info->getRelation('withdraw')->createtime : $info->getRelation('withdraw')->payment_time;
$info->getRelation('withdraw')->payment_time = date('Y/m/d/H:i',$payment_time);
$info->getRelation('withdraw')->visible(['id','order_sn','payment_time']);
}
$this->success('成功',$info);
... ...