Sfoglia il codice sorgente

修复:满额包邮商品下单报错

萤火科技 5 anni fa
parent
commit
11da24a3d0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/common/service/delivery/Express.php

+ 1 - 1
app/common/service/delivery/Express.php

@@ -205,7 +205,7 @@ class Express extends BaseService
         foreach ($item['goodsList'] as $goodsItem) {
             // 如果商品为包邮,则不计算总量中
             if (!in_array($goodsItem['goods_id'], $item['free_goods_list'])) {
-                $goodsWeight = helper::bcmul($goodsItem['goods_sku']['goods_weight'], $goodsItem['total_num']);
+                $goodsWeight = helper::bcmul($goodsItem['skuInfo']['goods_weight'], $goodsItem['total_num']);
                 $totalWeight = helper::bcadd($totalWeight, $goodsWeight);
                 $totalNum = helper::bcadd($totalNum, $goodsItem['total_num']);
             }