|
@@ -273,6 +273,7 @@ class BalanceLogService extends BaseService
|
|
|
$updateData = ["{$field}" => DB::raw("{$field} - {$money}"), 'update_time' => time()];
|
|
$updateData = ["{$field}" => DB::raw("{$field} - {$money}"), 'update_time' => time()];
|
|
|
|
|
|
|
|
// 会员账户
|
|
// 会员账户
|
|
|
|
|
+ $userType = 1;
|
|
|
if (!MemberModel::where(['id' => $userId])->update($updateData)) {
|
|
if (!MemberModel::where(['id' => $userId])->update($updateData)) {
|
|
|
DB::rollBack();
|
|
DB::rollBack();
|
|
|
$this->error = '提现处理失败';
|
|
$this->error = '提现处理失败';
|
|
@@ -293,7 +294,7 @@ class BalanceLogService extends BaseService
|
|
|
'pool_rate' => $poolRate,
|
|
'pool_rate' => $poolRate,
|
|
|
'pt_money' => $ptMoney,
|
|
'pt_money' => $ptMoney,
|
|
|
'pt_rate' => $ptRate,
|
|
'pt_rate' => $ptRate,
|
|
|
- 'user_type' => 1,
|
|
|
|
|
|
|
+ 'user_type' => $userType,
|
|
|
'type' => 2,
|
|
'type' => 2,
|
|
|
'account_type' => $accountType,
|
|
'account_type' => $accountType,
|
|
|
'pay_type' => $payType,
|
|
'pay_type' => $payType,
|
|
@@ -316,6 +317,8 @@ class BalanceLogService extends BaseService
|
|
|
$log = [
|
|
$log = [
|
|
|
'user_id' => $userId,
|
|
'user_id' => $userId,
|
|
|
'source_order_no' => $orderNo,
|
|
'source_order_no' => $orderNo,
|
|
|
|
|
+ 'user_type' => $userType,
|
|
|
|
|
+ 'account_type' => $accountType,
|
|
|
'type' => 4,
|
|
'type' => 4,
|
|
|
'money' => -$money,
|
|
'money' => -$money,
|
|
|
'after_money' => moneyFormat(max(0, $balance - $money), 2),
|
|
'after_money' => moneyFormat(max(0, $balance - $money), 2),
|