Browse Source

拆单+打印

gorden 5 months ago
parent
commit
93b166fe14
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

@@ -285,7 +285,8 @@ class OrderService
             try {
                 $config = config('payment.wxpay');
                 $config['notify_url'] = getenv('NOTIFY_DOMAIN_ADMIN') . '/notify/orderPay/wxpay';
-                Pay::wechat($config)->pos($payData);
+                $wxReturn = Pay::wechat($config)->pos($payData);
+                $log->info("WXPAY_RETURN", json_decode(json_encode($wxReturn), true));
                 $result = self::findWxpay($params['orderGroupId'], 0);
             } catch (GatewayException $g) {
                 $result = self::findWxpay($params['orderGroupId'], 0);
@@ -310,7 +311,8 @@ class OrderService
             try {
                 $config = config('payment.alipay');
                 $config['notify_url'] = getenv('NOTIFY_DOMAIN_ADMIN') . '/notify/orderPay/alipay';
-                Pay::alipay($config)->pos($payData);
+                $alipayReturn = Pay::alipay($config)->pos($payData);
+                $log->info("WXPAY_RETURN", json_decode(json_encode($alipayReturn), true));
                 $result = self::findAlipay($params['orderGroupId'], 0);
             } catch (GatewayException $g) {
                 $result = self::findAlipay($params['orderGroupId'], 0);