zhangchangchun 5 年 前
コミット
eed17505ff
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      app/Http/Controllers/Topic/TopicController.php

+ 2 - 2
app/Http/Controllers/Topic/TopicController.php

@@ -77,7 +77,7 @@ class TopicController extends Controller {
             'img' => 'required|url',
             'desc' => 'required|string|max:100',
             'category_ids' => 'required|string',
-            'base_count' => 'min:1|max:10000',
+            'base_count' => 'min:0|max:10000',
         ]);
         if ($validator->fails()) {
             return $this->response->error($validator->errors()->first(), 500);
@@ -92,7 +92,7 @@ class TopicController extends Controller {
             'img' => 'required|url',
             'desc' => 'required|string|max:100',
             'category_ids' => 'required|string',
-            'base_count' => 'min:1|max:10000',
+            'base_count' => 'min:0|max:10000',
         ]);
         if ($validator->fails()) {
             return $this->response->error($validator->errors()->first(), 500);