|
@@ -187,10 +187,6 @@ class ViolationProduct extends Controller
|
|
|
$lowprice_product_count = $LowPriceGoodsModel->where($status_where)->count();
|
|
$lowprice_product_count = $LowPriceGoodsModel->where($status_where)->count();
|
|
|
//计算总数量
|
|
//计算总数量
|
|
|
$product_totle = $violation_product_count + $lowprice_product_count;
|
|
$product_totle = $violation_product_count + $lowprice_product_count;
|
|
|
- //判断是否超过限制
|
|
|
|
|
- if ($product_totle >= 50) {
|
|
|
|
|
- return json_send(['code' => 'error', 'msg' => '启用数量超过限制,低价挂网和禁止商品不能超过50条']);
|
|
|
|
|
- }
|
|
|
|
|
// 接收数据
|
|
// 接收数据
|
|
|
$all_data = request()->all();
|
|
$all_data = request()->all();
|
|
|
$product_brand = request('product_brand', '');
|
|
$product_brand = request('product_brand', '');
|
|
@@ -328,10 +324,6 @@ class ViolationProduct extends Controller
|
|
|
$lowprice_product_count = $LowPriceGoodsModel->where('status', 0)->count();
|
|
$lowprice_product_count = $LowPriceGoodsModel->where('status', 0)->count();
|
|
|
//计算总数量
|
|
//计算总数量
|
|
|
$product_totle = $violation_product_count + $lowprice_product_count;
|
|
$product_totle = $violation_product_count + $lowprice_product_count;
|
|
|
- //判断是否超过限制
|
|
|
|
|
- if ($product_totle >= 50) {
|
|
|
|
|
- return json_send(['code' => 'error', 'msg' => '启用数量超过限制,低价挂网和禁止商品不能超过50条']);
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
// 查询用户
|
|
// 查询用户
|
|
|
$where = ['id' => $id];
|
|
$where = ['id' => $id];
|