|
|
@@ -88,11 +88,11 @@ class Product extends Controller
|
|
|
{
|
|
|
$request->scene('add')->validate();
|
|
|
//商品启用数量
|
|
|
- $product_count = $ProductModel->where('status', 0)->count();
|
|
|
+ // $product_count = $ProductModel->where('status', 0)->count();
|
|
|
//判断是否超过限制
|
|
|
- if ($product_count >= 50) {
|
|
|
- return json_send(['code' => 'error', 'msg' => '启用数量超过限制,不能超过50条']);
|
|
|
- }
|
|
|
+ // if ($product_count >= 50) {
|
|
|
+ // return json_send(['code' => 'error', 'msg' => '启用数量超过限制,不能超过50条']);
|
|
|
+ // }
|
|
|
// 接收数据
|
|
|
$all_data = request()->all();
|
|
|
//采集信息配置
|
|
|
@@ -183,7 +183,7 @@ class Product extends Controller
|
|
|
$status = request('status', 0);
|
|
|
if ($status == 0) {
|
|
|
//获取商品启用数量
|
|
|
- $product_count = $ProductModel->where('status', 0)->count();
|
|
|
+ // $product_count = $ProductModel->where('status', 0)->count();
|
|
|
//判断是否超过限制
|
|
|
// if ($product_count >= 50) {
|
|
|
// return json_send(['code' => 'error', 'msg' => '启用数量超过限制,不能超过50条']);
|