|
|
@@ -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) : '';
|