gorden 8 月之前
父节点
当前提交
a263ae2a60
共有 1 个文件被更改,包括 6 次插入0 次删除
  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);
                 $res = Pay::wechat(config('payment.wxpay'))->refund($wxRefundData);
                 file_put_contents(runtime_path('logs/wxpay.log'), $res);
                 file_put_contents(runtime_path('logs/wxpay.log'), $res);
                 $resArray = json_decode($res, true);
                 $resArray = json_decode($res, true);
+
+                throw new PayException('退款失败,原因:未完全接入');
+
             } else if ($payDetail->pay_prepayid == 'ALIPAY') {
             } else if ($payDetail->pay_prepayid == 'ALIPAY') {
                 // 退款
                 // 退款
                 $alipayRefundData = [
                 $alipayRefundData = [
@@ -1232,6 +1235,9 @@ class WholeController extends Curd
                 $res = Pay::alipay(config('payment.alipay'))->refund($alipayRefundData);
                 $res = Pay::alipay(config('payment.alipay'))->refund($alipayRefundData);
                 file_put_contents(runtime_path('logs/alipay.log'), $res);
                 file_put_contents(runtime_path('logs/alipay.log'), $res);
                 $resArray = json_decode($res, true);
                 $resArray = json_decode($res, true);
+
+                throw new PayException('退款失败,原因:未完全接入');
+                
             } else if (isset($payType[1]) && $payType[1] == 'CASH') {  // 余额支付
             } else if (isset($payType[1]) && $payType[1] == 'CASH') {  // 余额支付
                 $account = MemberAccount::where('join_account_member_id', $order->join_order_member_id)
                 $account = MemberAccount::where('join_account_member_id', $order->join_order_member_id)
                     ->where('member_account_classify', 'CASH')
                     ->where('member_account_classify', 'CASH')