dever 3 years ago
parent
commit
818c1ccd32
1 changed files with 4 additions and 3 deletions
  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']);