gorden 8 months ago
parent
commit
a263ae2a60
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/admin/controller/order/WholeController.php

+ 6 - 0
app/admin/controller/order/WholeController.php

@@ -1223,6 +1223,9 @@ class WholeController extends Curd
                 $res = Pay::wechat(config('payment.wxpay'))->refund($wxRefundData);
                 file_put_contents(runtime_path('logs/wxpay.log'), $res);
                 $resArray = json_decode($res, true);
+
+                throw new PayException('退款失败,原因:未完全接入');
+
             } else if ($payDetail->pay_prepayid == 'ALIPAY') {
                 // 退款
                 $alipayRefundData = [
@@ -1232,6 +1235,9 @@ class WholeController extends Curd
                 $res = Pay::alipay(config('payment.alipay'))->refund($alipayRefundData);
                 file_put_contents(runtime_path('logs/alipay.log'), $res);
                 $resArray = json_decode($res, true);
+
+                throw new PayException('退款失败,原因:未完全接入');
+                
             } else if (isset($payType[1]) && $payType[1] == 'CASH') {  // 余额支付
                 $account = MemberAccount::where('join_account_member_id', $order->join_order_member_id)
                     ->where('member_account_classify', 'CASH')