wesmiler 9 godzin temu
rodzic
commit
1c9c28f007
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      app/Services/Api/OrderService.php

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

@@ -284,13 +284,15 @@ class OrderService extends BaseService
 
         // 商品数据
         $orderNo = get_order_num('JK');
-        $result = GoodsService::make()->getOrderGoods($ids, $goods, $userId, $orderNo,$discountPoint,$couponId);
+        $result = GoodsService::make()->getOrderGoods($ids, $goods, $userId, $orderNo, $discountPoint, $couponId);
         if (empty($result)) {
             RedisService::clear($cacheLockKey);
             $this->error = GoodsService::make()->getError();
             return false;
         }
 
+        var_dump($result);
+
         $orderGoods = isset($result['goods']) ? $result['goods'] : [];
         $goodsTotal = isset($result['goods_total']) ? $result['goods_total'] : 0; // 商品总价
         $orderTotal = isset($result['order_total']) ? $result['order_total'] : 0; // 订单结算金额(折后)