refac: API 검증시 integer(int-like)에서 is_int로 강제

This commit is contained in:
2022-05-14 22:13:51 +09:00
parent 3e815691df
commit 63cfa5e298
16 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ class GetHistory extends \sammo\BaseAPI
$v = new Validator($this->args);
$v->rule('required', ['year', 'month'])
->rule('lengthMin', 'serverID', 1)
->rule('integer', 'year')
->rule('integer', 'month');
->rule('int', 'year')
->rule('int', 'month');
if (!$v->validate()) {
return $v->errorStr();
}