Browse Source

付款码轮询

gorden 6 months ago
parent
commit
1824c9bea4
1 changed files with 4 additions and 2 deletions
  1. 4 2
      app/admin/service/order/OrderService.php

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

@@ -255,8 +255,10 @@ class OrderService
             'out_trade_no' => $orderId,
         ];
         try{
-            dump(Pay::wechat(config('payment.wxpay')));
-            $result = Pay::wechat(config('payment.wxpay'));
+            $config = config('payment.wxpay');
+            unset($config['notify_url']);
+            dump(Pay::wechat($config));
+            $result = Pay::wechat($config)->find($order);
         }catch (\Exception $e){
             dump($e->getMessage());
         }