dever 3 years ago
parent
commit
9307ae2f6b
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/goods/lib/Sku.php

+ 4 - 4
app/goods/lib/Sku.php

@@ -85,14 +85,14 @@ class Sku
             $where['info_id'] = $config['goods_id'];
             $key = 'key';
             $table = 'goods/info';
+
+            $w['option_info_id'] = $config['goods_id'];
+            $w['set_state'] = 2;
+            Dever::db('goods/info_sku')->updates($w);
         }
 
         $sku_table = $table . '_sku';
 
-        $w['option_info_id'] = $config['goods_id'];
-        $w['set_state'] = 2;
-        Dever::db('goods/info_sku')->updates($w);
-
         if ($config['key'] == -1) {
 
             if ($config['other']) {