|
|
@@ -188,6 +188,9 @@ class Money extends Api
|
|
|
public function withdraw()
|
|
|
{
|
|
|
$user = $this->auth->getUser();
|
|
|
+ if(empty($user['fund_pwd'])){
|
|
|
+ $this->error(__('资金密码未设置'), '', 401);
|
|
|
+ }
|
|
|
|
|
|
$data['balance'] = $user['freeze'] < 0 ? $user['freeze']: $user['balance'];
|
|
|
$data['money_out_sum'] = MoneyOut::where('user_id', $user['id'])->where('status', MoneyOut::Success)->sum('amount');
|