|
...
|
...
|
@@ -347,10 +347,11 @@ class KeywordController extends BaseController |
|
|
|
*/
|
|
|
|
public function sendComment(KeywordLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'count'=>'required|max:10',
|
|
|
|
],[
|
|
|
|
'count' => 'required|integer|max:10',
|
|
|
|
], [
|
|
|
|
'count.required' => '生成条数不能为空',
|
|
|
|
'count.max'=>'count最大10',
|
|
|
|
'count.integer' => '生成条数必须是整数',
|
|
|
|
'count.max' => '生成条数最大不能超过10',
|
|
|
|
]);
|
|
|
|
$data = $logic->sendComment();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
...
|
...
|
|