作者 李宇航

合并分支 'lyh-server' 到 'master'

gx报错



查看合并请求 !2134
@@ -347,10 +347,11 @@ class KeywordController extends BaseController @@ -347,10 +347,11 @@ class KeywordController extends BaseController
347 */ 347 */
348 public function sendComment(KeywordLogic $logic){ 348 public function sendComment(KeywordLogic $logic){
349 $this->request->validate([ 349 $this->request->validate([
350 - 'count'=>'required|max:10',  
351 - ],[ 350 + 'count' => 'required|integer|max:10',
  351 + ], [
352 'count.required' => '生成条数不能为空', 352 'count.required' => '生成条数不能为空',
353 - 'count.max'=>'count最大10', 353 + 'count.integer' => '生成条数必须是整数',
  354 + 'count.max' => '生成条数最大不能超过10',
354 ]); 355 ]);
355 $data = $logic->sendComment(); 356 $data = $logic->sendComment();
356 $this->response('success',Code::SUCCESS,$data); 357 $this->response('success',Code::SUCCESS,$data);