Browse Source

验证关键词填写重复问题的参数验证

FengR 2 months ago
parent
commit
f619b6394f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Controller/PublicController.php

+ 2 - 0
app/Controller/PublicController.php

@@ -2956,9 +2956,11 @@ class PublicController extends AbstractController
             $requireData,
             [
                 'keyword' => 'required',
+                'type' => 'required'
             ],
             [
                 'keyword.required' => '关键词不能为空',
+                'type.required' => '类型不能为空'
             ]
         );
         if ($validator->fails()) {