|
@@ -196,7 +196,7 @@ class ViolationProduct extends Controller
|
|
|
$all_data['product_specs'] = $product_specs;
|
|
$all_data['product_specs'] = $product_specs;
|
|
|
$all_data['product_brand'] = $product_brand;
|
|
$all_data['product_brand'] = $product_brand;
|
|
|
$all_data['product_keyword'] = $product_keyword;
|
|
$all_data['product_keyword'] = $product_keyword;
|
|
|
- $enable_full_quantity = request('enable_full_quantity', 0); //全量,0启用,1禁用
|
|
|
|
|
|
|
+ $enable_full_quantity = 1; //全量,0启用,1禁用
|
|
|
$all_data['enable_full_quantity'] = $enable_full_quantity;
|
|
$all_data['enable_full_quantity'] = $enable_full_quantity;
|
|
|
if (trim($product_keyword) != '') {
|
|
if (trim($product_keyword) != '') {
|
|
|
$product_keyword_count = count(explode(',', $product_keyword));
|
|
$product_keyword_count = count(explode(',', $product_keyword));
|
|
@@ -204,6 +204,9 @@ class ViolationProduct extends Controller
|
|
|
return json_send(['code' => 'error', 'msg' => '商品关键词不能超过5个']);
|
|
return json_send(['code' => 'error', 'msg' => '商品关键词不能超过5个']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if($enable_full_quantity == 1 && $all_data['product_specs'] == ''){
|
|
|
|
|
+ return json_send(['code' => 'error', 'msg' => '商品规格不能为空']);
|
|
|
|
|
+ }
|
|
|
$store_scope = request('store_scope', '');
|
|
$store_scope = request('store_scope', '');
|
|
|
$all_data['store_scope'] = $store_scope;
|
|
$all_data['store_scope'] = $store_scope;
|
|
|
$platform_string = request('platform', '');
|
|
$platform_string = request('platform', '');
|
|
@@ -298,7 +301,7 @@ class ViolationProduct extends Controller
|
|
|
$all_data['product_specs'] = $product_specs;
|
|
$all_data['product_specs'] = $product_specs;
|
|
|
$all_data['product_brand'] = $product_brand;
|
|
$all_data['product_brand'] = $product_brand;
|
|
|
$all_data['product_keyword'] = $product_keyword;
|
|
$all_data['product_keyword'] = $product_keyword;
|
|
|
- $enable_full_quantity = request('enable_full_quantity', 0); //全量,0启用,1禁用
|
|
|
|
|
|
|
+ $enable_full_quantity = 1; //全量,0启用,1禁用
|
|
|
$all_data['enable_full_quantity'] = $enable_full_quantity;
|
|
$all_data['enable_full_quantity'] = $enable_full_quantity;
|
|
|
if (trim($product_keyword) != '') {
|
|
if (trim($product_keyword) != '') {
|
|
|
$product_keyword_count = count(explode(',', $product_keyword));
|
|
$product_keyword_count = count(explode(',', $product_keyword));
|
|
@@ -306,6 +309,9 @@ class ViolationProduct extends Controller
|
|
|
return json_send(['code' => 'error', 'msg' => '商品关键词不能超过5个']);
|
|
return json_send(['code' => 'error', 'msg' => '商品关键词不能超过5个']);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if($enable_full_quantity == 1 && $all_data['product_specs'] == ''){
|
|
|
|
|
+ return json_send(['code' => 'error', 'msg' => '商品规格不能为空']);
|
|
|
|
|
+ }
|
|
|
$store_scope = request('store_scope', '');
|
|
$store_scope = request('store_scope', '');
|
|
|
$all_data['store_scope'] = $store_scope;
|
|
$all_data['store_scope'] = $store_scope;
|
|
|
$company_scope = request('company_scope', '');
|
|
$company_scope = request('company_scope', '');
|