wesmiler пре 3 месеци
родитељ
комит
1da79ea0e1
1 измењених фајлова са 1 додато и 4 уклоњено
  1. 1 4
      app/Services/Api/BalanceLogService.php

+ 1 - 4
app/Services/Api/BalanceLogService.php

@@ -151,7 +151,7 @@ class BalanceLogService extends BaseService
     public function withdraw($userId, $params)
     {
         // 参数验证
-        $accountType = isset($params['account_type']) && $params['account_type']? intval($params['account_type']) : 1;
+        $accountType = isset($params['account_type']) && $params['account_type']? intval($params['account_type']) : 2;
         $money = isset($params['money'])? floatval($params['money']) : 0;
         $accountRemark = isset($params['account_remark'])? trim($params['account_remark']) : '';
         $account = isset($params['account'])? trim($params['account']) : '';
@@ -193,9 +193,6 @@ class BalanceLogService extends BaseService
         $agentBalance = isset($agent['balance'])? $agent['balance'] : 0;
         $nickname = isset($userInfo['nickname'])? $userInfo['nickname'] : '';
         $balance = $accountType==2?$agentBalance:$balance;
-        dump($agent);
-        dump($balance);
-        dump($accountType);
         if(empty($userInfo) || $status != 1){
             $this->error = 1045;
             RedisService::clear($cacheLockKey);