fix: 에러 로그에 따라 수정

- 임관, 하야 등에서 탑승 부대 해제
- 외교 서신 회수시 warning
- DummyGeneral에서 능력치 참조 시.
This commit is contained in:
2022-03-23 23:40:50 +09:00
parent fea2163a01
commit a3fbaa0038
4 changed files with 18 additions and 3 deletions
+1 -3
View File
@@ -41,8 +41,6 @@ if ($permission < 4) {
]);
}
$reason = trim($reason);
$letter = $db->queryFirstRow('SELECT * FROM ng_diplomacy WHERE no=%i AND src_nation_id = %i AND state = \'proposed\'', $letterNo, $me['nation']);
if(!$letter){
Json::die([
@@ -66,7 +64,7 @@ $unlimited = new \DateTime('9999-12-31');
$aux['reason'] = [
'who'=>$me['no'],
'action'=>'cancelled',
'reason'=>$reason
'reason'=>'회수',
];
$db->update('ng_diplomacy', [
'state'=>'cancelled',