|
|
@@ -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);
|