修复:佣金提现申请记录 提现金额应该为实际到账金额+手续费

This commit is contained in:
wuhui_zzw 2024-04-09 17:44:27 +08:00
parent e593269708
commit be408ba6f9
1 changed files with 8 additions and 1 deletions

View File

@ -35,7 +35,14 @@ class UserExtract extends BaseController
[$start,$stop]= $this->request->params(['start','stop'],true);
$where['date'] = $start&&$stop ? date('Y/m/d',$start).'-'.date('Y/m/d',$stop) : '';
$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)