Forráskód Böngészése

[智价云] 数量校验更新

tangyuanwang 13 órája
szülő
commit
9142d5ffda

+ 0 - 8
app/Http/Controllers/Manager/WashConfig/LowPriceGoods.php

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

+ 0 - 8
app/Http/Controllers/Manager/WashConfig/ViolationProduct.php

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