Jelajahi Sumber

[智价云] 采集数量限制注释

tangyuanwang 1 bulan lalu
induk
melakukan
399cd7933f
1 mengubah file dengan 5 tambahan dan 5 penghapusan
  1. 5 5
      app/Http/Controllers/Manager/Collect/Product.php

+ 5 - 5
app/Http/Controllers/Manager/Collect/Product.php

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