|
@@ -590,7 +590,6 @@ class PaymentOrderService extends BaseService
|
|
|
$data['status'] = self::STATUS_SUCCESS;
|
|
$data['status'] = self::STATUS_SUCCESS;
|
|
|
$res = self::model()::where(['order_no' => $params['orderNo']])->update($data);
|
|
$res = self::model()::where(['order_no' => $params['orderNo']])->update($data);
|
|
|
if ($res) {
|
|
if ($res) {
|
|
|
- DB::commit();
|
|
|
|
|
$text = "✅ 提现通知 \n";
|
|
$text = "✅ 提现通知 \n";
|
|
|
$text .= "提现平台:{$info->bank_name} \n";
|
|
$text .= "提现平台:{$info->bank_name} \n";
|
|
|
$text .= "收款人:{$info->account} \n";
|
|
$text .= "收款人:{$info->account} \n";
|
|
@@ -613,7 +612,6 @@ class PaymentOrderService extends BaseService
|
|
|
// 记录退款日志
|
|
// 记录退款日志
|
|
|
BalanceLogService::addLog($memberId, $amount, $balance, $available_balance, '三方提现', $info->id, '提现失败退款');
|
|
BalanceLogService::addLog($memberId, $amount, $balance, $available_balance, '三方提现', $info->id, '提现失败退款');
|
|
|
if ($res) {
|
|
if ($res) {
|
|
|
- DB::commit();
|
|
|
|
|
$text = "❌ 提现通知 \n";
|
|
$text = "❌ 提现通知 \n";
|
|
|
$text .= "提现平台:{$info->bank_name} \n";
|
|
$text .= "提现平台:{$info->bank_name} \n";
|
|
|
$text .= "收款人:{$info->account} \n";
|
|
$text .= "收款人:{$info->account} \n";
|
|
@@ -623,6 +621,9 @@ class PaymentOrderService extends BaseService
|
|
|
self::sendMessage($chat_id, $text);
|
|
self::sendMessage($chat_id, $text);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ DB::commit();
|
|
|
|
|
+
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
DB::rollBack();
|
|
DB::rollBack();
|
|
|
// 回滚失败,需要记录告警,人工干预
|
|
// 回滚失败,需要记录告警,人工干预
|