|
|
@@ -294,15 +294,7 @@ class PaymentOrderService extends BaseService
|
|
|
$wallet->save();
|
|
|
|
|
|
// 记录余额变动日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $info->member_id,
|
|
|
- $payAmount,
|
|
|
- $balance,
|
|
|
- $available_balance,
|
|
|
- '三方充值',
|
|
|
- $info->id,
|
|
|
- ''
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($info->member_id, $payAmount, $balance, $available_balance, '三方充值', $info->id, '');
|
|
|
|
|
|
$text = "✅ 支付成功 \n";
|
|
|
$text .= "充值金额:{$payAmount} RMB \n";
|
|
|
@@ -353,15 +345,7 @@ class PaymentOrderService extends BaseService
|
|
|
throw new Exception("更新失败,请重试", HttpStatus::CUSTOM_ERROR);
|
|
|
}
|
|
|
// 记录退款日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $order->member_id,
|
|
|
- $order->amount,
|
|
|
- $beforeBalance,
|
|
|
- $availableBalance,
|
|
|
- '三方提现',
|
|
|
- $order->id,
|
|
|
- '提现失败退款'
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($order->member_id, $order->amount, $beforeBalance, $availableBalance, '三方提现', $order->id, '提现失败退款');
|
|
|
DB::commit();
|
|
|
} catch (Exception $e) {
|
|
|
DB::rollBack();
|
|
|
@@ -470,15 +454,7 @@ class PaymentOrderService extends BaseService
|
|
|
$id = $info->id;
|
|
|
|
|
|
// 记录余额变动日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $memberId,
|
|
|
- $default_amount,
|
|
|
- $balance,
|
|
|
- $available_balance,
|
|
|
- '三方提现',
|
|
|
- $id,
|
|
|
- '钱宝提现费率:0.2%+2'
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($memberId, $default_amount, $balance, $available_balance, '三方提现', $id, '钱宝提现费率:0.2%+2');
|
|
|
|
|
|
// 提交事务,确保预扣款成功
|
|
|
DB::commit();
|
|
|
@@ -539,15 +515,7 @@ class PaymentOrderService extends BaseService
|
|
|
$info->save();
|
|
|
|
|
|
// 记录退款日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $memberId,
|
|
|
- $default_amount,
|
|
|
- $available_balance,
|
|
|
- $balance,
|
|
|
- '三方提现',
|
|
|
- $id,
|
|
|
- '提现失败退款'
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($memberId, $default_amount, $available_balance, $balance, '三方提现', $id, '提现失败退款');
|
|
|
|
|
|
DB::commit();
|
|
|
$result['text'] = $ret['msg'];
|
|
|
@@ -643,15 +611,7 @@ class PaymentOrderService extends BaseService
|
|
|
$wallet->available_balance = $available_balance;
|
|
|
$wallet->save();
|
|
|
// 记录退款日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $memberId,
|
|
|
- $amount,
|
|
|
- $balance,
|
|
|
- $available_balance,
|
|
|
- '三方提现',
|
|
|
- $info->id,
|
|
|
- '提现失败退款'
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($memberId, $amount, $balance, $available_balance, '三方提现', $info->id, '提现失败退款');
|
|
|
if ($res) {
|
|
|
DB::commit();
|
|
|
$text = "❌ 提现通知 \n";
|
|
|
@@ -699,15 +659,7 @@ class PaymentOrderService extends BaseService
|
|
|
$wallet->save();
|
|
|
|
|
|
// 记录余额变动日志
|
|
|
- BalanceLogService::addLog(
|
|
|
- $info->member_id,
|
|
|
- $info->amount,
|
|
|
- $balance,
|
|
|
- $available_balance,
|
|
|
- '三方充值',
|
|
|
- $info->id,
|
|
|
- ''
|
|
|
- );
|
|
|
+ BalanceLogService::addLog($info->member_id, $info->amount, $balance, $available_balance, '三方充值', $info->id, '');
|
|
|
|
|
|
$msg['code'] = self::YES;
|
|
|
$msg['msg'] = '支付成功';
|