정책 반영

This commit is contained in:
2020-05-13 01:56:08 +09:00
parent a133dfc722
commit 1e963ee1d8
8 changed files with 221 additions and 13 deletions
+3 -3
View File
@@ -174,13 +174,13 @@ class AutorunNationPolicy {
foreach(static::$defaultPolicy as $policy=>$value){
$this->{$policy} = $value;
}
if($serverPolicy){
foreach($serverPolicy['values']??[] as $policy=>$value){
if(!property_exists($this, $policy)){
continue;
}
$this->$policy = $value;
$this->{$policy} = $value;
}
if(key_exists('priority', $serverPolicy)){
@@ -194,7 +194,7 @@ class AutorunNationPolicy {
if(!property_exists($this, $policy)){
continue;
}
$this->$policy = $value;
$this->{$policy} = $value;
}
if(key_exists('priority', $nationPolicy)){