作者 lishaoshuai
1 个管道 的构建 通过 耗费 0 秒

更新 ShareController.php 头像

... ... @@ -189,9 +189,11 @@ class ShareController extends RestBaseController
}
$per_page = !empty($data['per_page']) ? : config('per_page');
$result = Db::name('withdraw_log')
->where(['card_id' => $data['id'],'state' => 1,'user_id' => $this->userId])
->field('money,pay_time')
->order('pay_time desc')
->alias('w')
->join('user u','w.user_id=u.id','left')
->where(['w.card_id' => $data['id'],'w.state' => 1,'w.user_id' => $this->userId])
->field('w.money,w.pay_time,u.avatar')
->order('w.pay_time desc')
->paginate($per_page);
if ($result === false) {
$this->error(['code'=>'40000','msg'=>'获取失败']);
... ...