Explorar el Código

[智价云] 采集商品启动校验信息更新

tangyuanwang hace 1 semana
padre
commit
6c0038b5e7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Controllers/Manager/Collect/Product.php

+ 1 - 1
app/Http/Controllers/Manager/Collect/Product.php

@@ -516,7 +516,7 @@ class Product extends Controller
                         });
                     })->first();
                 $platform_name = isset($platform_data[$platform]) ? $platform_data[$platform] : '';
-                if (!empty($product_specs_log)) {
+                if (!empty($product_specs_log) && $status == 0) {
                     return json_send(['code' => 'error', 'msg' => $platform_name . '存在重复的商品规格启用记录']);
                 }
             }