wesmiler 1 vecka sedan
förälder
incheckning
4cb37b592e
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6 1
      app/Services/Api/OrderService.php

+ 6 - 1
app/Services/Api/OrderService.php

@@ -877,12 +877,17 @@ class OrderService extends BaseService
             return false;
         }
 
+        $payTotal = moneyFormat($orderTotal + $deliveryFee);
+        if (env('PAY_DEBUG')) {
+            $payTotal = 0.01;
+        }
+
         // 获取支付参数
         /* TODO 支付处理 */
         $payOrder = [
             'type' => 1,
             'order_no' => $orderNo,
-            'pay_money' => moneyFormat($orderTotal + $deliveryFee),
+            'pay_money' => $payTotal,
             'body' => '购物消费',
             'openid' => $openid
         ];