Răsfoiți Sursa

[智价云] 清洗配置校验更新

tangyuanwang 1 zi în urmă
părinte
comite
f7ffe32dfb

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php

@@ -480,7 +480,7 @@ class LowPriceGoods extends Controller
                     return json_send(['code' => 'error', 'msg' => $platform_name . '存在重复的商品规格启用记录']);
                 }
             }
-        } else if (!empty($data) && $LowProduct->enable_full_quantity == 0) {
+        } else if (!empty($LowProduct) && $LowProduct->enable_full_quantity == 0) {
             $platform_string = $LowProduct->platform;
             $platforms = $platform_string ?  explode(',', $platform_string) : '';
             $platforms = $platforms ? array_unique($platforms) : '';

+ 1 - 1
app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

@@ -479,7 +479,7 @@ class ViolationProduct extends Controller
                     return json_send(['code' => 'error', 'msg' => $platform_name . '存在重复的商品规格启用记录']);
                 }
             }
-        } else if (!empty($data) && $ViolationProduct->enable_full_quantity == 0) {
+        } else if (!empty($ViolationProduct) && $ViolationProduct->enable_full_quantity == 0) {
             $platform_string = $ViolationProduct->platform;
             $platforms = $platform_string ?  explode(',', $platform_string) : '';
             $platforms = $platforms ? array_unique($platforms) : '';