game: 유산 포인트로 도시와 턴 시간을 동시에 설정할 수 없도록 변경

This commit is contained in:
2022-07-05 20:18:02 +09:00
parent 048d71920c
commit 2b483749bc
2 changed files with 51 additions and 7 deletions
+5
View File
@@ -75,6 +75,7 @@ class Join extends \sammo\BaseAPI
if (!$v->validate()) {
return $v->errorStr();
}
return null;
}
@@ -104,6 +105,10 @@ class Join extends \sammo\BaseAPI
$inheritCity = $this->args['inheritCity'] ?? null;
$inheritBonusStat = $this->args['inheritBonusStat'] ?? null;
if($inheritTurntime !== null && $inheritCity !== null){
return '턴과 도시를 동시에 지정할 수 없습니다.';
}
$rootDB = RootDB::db();
//회원 테이블에서 정보확인
$member = $rootDB->queryFirstRow('SELECT `no`, id, picture, grade, `name`, imgsvr FROM member WHERE no=%i', $userID);