neutralize 일부 롤백

과거의 나는 다 계획이 있었구나.
This commit is contained in:
2020-05-05 03:57:00 +09:00
parent 42b59f0471
commit 5703db8c2b
7 changed files with 13 additions and 7 deletions
+2 -2
View File
@@ -34,8 +34,8 @@ if($title === null || $text === null){
]);
}
$title = StringUtil::neutralize($title);
$text = StringUtil::neutralize($text);
$title = trim($title);
$text = trim($text);
if(!$title && !$text){
Json::die([
+1 -1
View File
@@ -33,7 +33,7 @@ if($articleNo === null || $text === null){
]);
}
$text = StringUtil::neutralize($text);
$text = trim($text);
if(!$text){
Json::die([
+1 -1
View File
@@ -45,7 +45,7 @@ if ($permission < 4) {
]);
}
$reason = StringUtil::neutralize($reason);
$reason = trim($reason);
$letter = $db->queryFirstRow('SELECT * FROM ng_diplomacy WHERE no=%i AND dest_nation_id = %i AND state = \'proposed\'', $letterNo, $me['nation']);
if(!$letter){
+2 -2
View File
@@ -46,8 +46,8 @@ if($textBrief === null || $textDetail === null){
]);
}
$textBrief = StringUtil::neutralize($textBrief);
$textDetail = StringUtil::neutralize($textDetail);
$textBrief = trim($textBrief);
$textDetail = trim($textDetail);
if(!$textBrief){
Json::die([
+1 -1
View File
@@ -23,7 +23,7 @@ if(!$v->validate()){
}
$mailbox = (int)$post['mailbox'];
$text = StringUtil::neutralize(StringUtil::cutStringForWidth($post['text'], 199, ''));
$text = trim(StringUtil::cutStringForWidth($post['text'], 199, ''));
$session = Session::requireGameLogin([
'msgID'=>null
+3
View File
@@ -89,6 +89,9 @@ class che_거병 extends Command\GeneralCommand{
}
$secretlimit = 3;
if($env['scenario']>=1000){
$secretlimit = 1;
}
DB::db()->insert('nation', [
'name'=>$nationName,
+3
View File
@@ -3424,6 +3424,7 @@ class GeneralAI
$chief = $this->chiefGenerals[$chiefLevel];
if($chief->getVar('npc') < 2 && $chief->getVar('killturn') >= $minUserKillturn){
$userChiefCnt+=1;
$chief->setVar('permission', 'ambassador');
}
}
@@ -3453,6 +3454,7 @@ class GeneralAI
$nextChiefs[11] = $general;
$general->setVar('officer_level', 11);
$general->setVar('officer_city', 0);
$general->setVar('permission', 'ambassador');
$nation['l11set'] = true;
$updatedNationVar['l11set'] = 1;
$userChiefCnt += 1;
@@ -3536,6 +3538,7 @@ class GeneralAI
if($newChief->getVar('npc') < 2){
$userChiefCnt += 1;
$newChief->setVar('permission', 'ambassador');
}
$nextChiefs[$chiefLevel] = $newChief;