Browse Source

打开今日特价

shish 5 years ago
parent
commit
5e3e4d33c8
1 changed files with 9 additions and 9 deletions
  1. 9 9
      biz-ghs/product/services/ProductService.php

+ 9 - 9
biz-ghs/product/services/ProductService.php

@@ -19,15 +19,15 @@ class ProductService extends BaseService
     public static function assembleData($classIds, $itemIdsInfo, $itemInfoData, $oftenItemIds, $type, $showSale = false)
     {
         $saleItem = []; //今日特价
-        //暂时关闭今日特价
-//        if($itemInfoData){
-//            foreach ($itemInfoData as $v){
-//                $v['classId'] = self::ALL_CLASS_ID;
-//                if($v['price'] < $v['cost']+ $v['addPrice']){
-//                    $saleItem[] = $v;
-//                }
-//            }
-//        }
+
+        if($itemInfoData){
+            foreach ($itemInfoData as $v){
+                $v['classId'] = self::ALL_CLASS_ID;
+                if($v['price'] < $v['cost']+ $v['addPrice']){
+                    $saleItem[] = $v;
+                }
+            }
+        }
 
         //classId=>itemId
         $classMapItem = [];