one_after 3 ヶ月 前
コミット
9e35aeb73e
1 ファイル変更7 行追加0 行削除
  1. 7 0
      app/business/WithdrawBusiness.php

+ 7 - 0
app/business/WithdrawBusiness.php

@@ -104,9 +104,13 @@ class WithdrawBusiness
                 $account_holder  = '';
                 $card_number     = '';
                 $userdata = Db::table('wa_users')->where('id',$param['user_data']['id'])->first();
+                if($userdata->money_fourteen<$param['money']){
+                    throw new \Exception('今日提现额度不足!');
+                }
                 if($userdata->money_four<$param['money']){
                     throw new \Exception('银行卡基础额度不足!');
                 }
+
             }elseif ($param['mold'] == 55){
                 $status          = 3;
                 $affiliated_bank = '';
@@ -114,6 +118,9 @@ class WithdrawBusiness
                 $card_number     = '';
                 $userdata = Db::table('wa_users')->where('id',$param['user_data']['id'])->first();
                 $money_five_value = bcmul($param['money'],$system->coin_value,2);
+                if($userdata->money_thirteen<$money_five_value){
+                    throw new \Exception('今日提现额度不足!');
+                }
                 if($userdata->money_four<$money_five_value){
                     throw new \Exception('银行卡基础额度不足!');
                 }