|
@@ -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);
|