diff --git a/app/controller/api/user/UserExtract.php b/app/controller/api/user/UserExtract.php index 2f7d6c8..60429f3 100644 --- a/app/controller/api/user/UserExtract.php +++ b/app/controller/api/user/UserExtract.php @@ -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)