버그 수정

This commit is contained in:
2019-10-09 03:19:50 +09:00
parent 073759612a
commit cb1ac4541b
17 changed files with 240 additions and 189 deletions
+3 -3
View File
@@ -14,12 +14,12 @@ class AllowJoinDestNation extends Constraint{
return false;
}
if(!key_exists('scout', $this->nation)){
if(!key_exists('scout', $this->destNation)){
if(!$throwExeception){return false; }
throw new \InvalidArgumentException("require scout in nation");
}
if(!key_exists('gennum', $this->nation)){
if(!key_exists('gennum', $this->destNation)){
if(!$throwExeception){return false; }
throw new \InvalidArgumentException("require gennum in nation");
}
@@ -50,7 +50,7 @@ class AllowJoinDestNation extends Constraint{
return false;
}
$joinedNations = Json::decode($this->general['nations']);
$joinedNations = \sammo\Json::decode($this->general['nations']);
if(in_array($this->destNation['nation'], $joinedNations)){
$this->reason = "이미 임관했었던 국가입니다.";
return false;