Browse Source

付款码轮询

gorden 6 months ago
parent
commit
a53f3b2c50

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

@@ -1837,7 +1837,6 @@ class WholeController extends Curd
                     $result = json_encode($result);
                     $params['pay_json_response'] = $result;
                     $result = json_decode($result,true);
-                    dump($result);
 
                     $prefix = substr($params['qrcode_nbr'],0,2);
                     if(in_array($prefix,[10,11,12,13,14,15])){

+ 2 - 4
app/admin/service/order/OrderService.php

@@ -218,7 +218,6 @@ class OrderService
             try {
                 Pay::wechat(config('payment.wxpay'))->pos($payData);
                 $result = self::findWxpay($params['orderGroupId'], 0);
-                dump("微信返回",$result);
             } catch (\Exception $e) {
                 $log->error("WXPAY", ['msg' => $e->getMessage()]);
                 throw new BusinessException("支付失败");
@@ -236,9 +235,8 @@ class OrderService
                 'auth_code' => $params['qrcode_nbr'],
             ];
             try {
-//                Pay::alipay(config('payment.alipay'))->pos($payData);
-//                $result = self::findAlipay($params['orderGroupId'], 0);
-                $result = self::findAlipay('OD20240816101538W1FJ9J', 0);
+                Pay::alipay(config('payment.alipay'))->pos($payData);
+                $result = self::findAlipay($params['orderGroupId'], 0);
             } catch (\Exception $e) {
                 $log->error("ALIPAY", ['msg' => $e->getMessage()]);
                 throw new BusinessException("支付失败");