dever 4 年之前
父节点
当前提交
818c1ccd32
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      app/goods/lib/Info.php

+ 4 - 3
app/goods/lib/Info.php

@@ -435,6 +435,10 @@ class Info
                 # 获取sku的价格
                 $this->getPrice($info, $other);
             }
+
+            if (!$info['attr']) {
+                $info['price_type'] = 1;
+            }
         }
        
         if (isset($info['cdate']) && $info['cdate']) {
@@ -445,9 +449,6 @@ class Info
 
         $this->getGroup($info);
 
-        if (!$info['attr']) {
-            $info['price_type'] = 1;
-        }
 
         //$info['freight'] = 0;
         unset($info['f_price']);