修复:佣金提现申请记录 提现金额应该为实际到账金额+手续费
This commit is contained in:
parent
e593269708
commit
be408ba6f9
|
|
@ -35,7 +35,14 @@ class UserExtract extends BaseController
|
||||||
[$start,$stop]= $this->request->params(['start','stop'],true);
|
[$start,$stop]= $this->request->params(['start','stop'],true);
|
||||||
$where['date'] = $start&&$stop ? date('Y/m/d',$start).'-'.date('Y/m/d',$stop) : '';
|
$where['date'] = $start&&$stop ? date('Y/m/d',$start).'-'.date('Y/m/d',$stop) : '';
|
||||||
$where['uid'] = $this->request->uid();
|
$where['uid'] = $this->request->uid();
|
||||||
return app('json')->success($this->repository->getList($where,$page,$limit));
|
$data = $this->repository->getList($where,$page,$limit);
|
||||||
|
$data['list']->each(function($item){
|
||||||
|
$item['extract_price'] = bcadd((float)$item['extract_price'], (float)$item['withdraw_commission'], 2);
|
||||||
|
|
||||||
|
return $item;
|
||||||
|
});
|
||||||
|
|
||||||
|
return app('json')->success($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create(validate $validate)
|
public function create(validate $validate)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue