fix: GET은 int를 arg로 받을 수 없음

This commit is contained in:
2022-05-15 17:00:14 +09:00
parent c067b8623c
commit e447a8d038
3 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -18,11 +18,12 @@ class GetBettingDetail extends \sammo\BaseAPI
$v->rule('required', [
'betting_id',
])
->rule('int', 'betting_id');
->rule('integer', 'betting_id');
if (!$v->validate()) {
return $v->errorStr();
}
$this->args['betting_id'] = (int)$this->args['betting_id'];
return null;
}