feat,refac: 중원 정보 페이지

This commit is contained in:
2022-04-21 03:24:11 +09:00
parent 7c3d94833f
commit 56512dad8a
10 changed files with 282 additions and 243 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ class GetMap extends \sammo\BaseAPI
public function validateArgs(): ?string
{
$v = new Validator($this->args);
$v->rule('boolean', 'neutralView')
->rule('boolean', 'showMe');
$v->rule('in', 'neutralView', [0, 1])
->rule('in', 'showMe', [0, 1]);
if (!$v->validate()) {
return $v->errorStr();
}