WIN-2308041133\Administrator 2 veckor sedan
förälder
incheckning
365418a421
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. 4 3
      app/api/controller/order/StoreOrderController.php

+ 4 - 3
app/api/controller/order/StoreOrderController.php

@@ -202,6 +202,7 @@ class StoreOrderController
                     $orderInfo = $orderInfo->toArray();
                     $orderInfo = $orderInfo->toArray();
                     if ($orderInfo['paid']) return app('json')->fail('支付已支付!');
                     if ($orderInfo['paid']) return app('json')->fail('支付已支付!');
                     //支付金额为0
                     //支付金额为0
+                    @file_put_contents('quanju2.txt',  "-到这里了吗\r\n", 8);
                     if (bcsub((float)$orderInfo['pay_price'], 0, 2) <= 0) {
                     if (bcsub((float)$orderInfo['pay_price'], 0, 2) <= 0) {
                         //创建订单jspay支付
                         //创建订单jspay支付
                         $payPriceStatus = StoreOrder::jsPayPrice($orderId, $uid, $formId);
                         $payPriceStatus = StoreOrder::jsPayPrice($orderId, $uid, $formId);
@@ -214,7 +215,7 @@ class StoreOrderController
 
 
                     } else {
                     } else {
                         try {
                         try {
-                            @file_put_contents('quanju.txt',  $from."-微信支付方式\r\n", 8);
+                            @file_put_contents('quanju2.txt',  $from."-微信支付方式\r\n", 8);
                             if ($from == 'routine') {
                             if ($from == 'routine') {
                                 $jsConfig = OrderRepository::jsPay($orderId); //创建订单jspay
                                 $jsConfig = OrderRepository::jsPay($orderId); //创建订单jspay
                             } else if ($from == 'weixinh5') {
                             } else if ($from == 'weixinh5') {
@@ -222,9 +223,9 @@ class StoreOrderController
                             } else {
                             } else {
                                 $jsConfig = OrderRepository::wxPay($orderId);
                                 $jsConfig = OrderRepository::wxPay($orderId);
                             }
                             }
-                            @file_put_contents('quanju.txt',  $jsConfig."-微信支付失败2\r\n", 8);
+                            @file_put_contents('quanju2.txt',  $jsConfig."-微信支付失败2\r\n", 8);
                         } catch (\Exception $e) {
                         } catch (\Exception $e) {
-                            @file_put_contents('quanju.txt',  $e->getMessage()."-微信支付失败\r\n", 8);
+                            @file_put_contents('quanju2.txt',  $e->getMessage()."-微信支付失败\r\n", 8);
                             return app('json')->status('pay_error', $e->getMessage(), $info);
                             return app('json')->status('pay_error', $e->getMessage(), $info);
                         }
                         }
                         $info['jsConfig'] = $jsConfig;
                         $info['jsConfig'] = $jsConfig;