wesmiler 1 year ago
parent
commit
50c6f53346
1 changed files with 8 additions and 7 deletions
  1. 8 7
      app/Services/Api/GoodsService.php

+ 8 - 7
app/Services/Api/GoodsService.php

@@ -373,14 +373,15 @@ class GoodsService extends BaseService
         if($goods){
             foreach ($goods as &$item){
                 $skuList = isset($item['sku_list'])? $item['sku_list'] : [];
+                var_dump($skuList);
                 if($skuList){
-                    $skus = [];
-                    foreach ($skuList as $v){
-                        $v['retail_price'] = $this->getRealSalePrice($v['plat_price']);
-                        $skus[$v['sku_id']] = $v;
-                    }
-
-                    $item['sku_list'] = $skus;
+//                    $skus = [];
+//                    foreach ($skuList as $v){
+//                        $v['retail_price'] = $this->getRealSalePrice($v['plat_price']);
+//                        $skus[$v['sku_id']] = $v;
+//                    }
+//
+//                    $item['sku_list'] = $skus;
                 }
             }
             RedisService::set($cacheKey, $goods, rand(3,5));