gorden 7 місяців тому
батько
коміт
1824c9bea4
1 змінених файлів з 4 додано та 2 видалено
  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());
         }