From eecac2b0073de4fd22201c2383d2144323f979a8 Mon Sep 17 00:00:00 2001 From: hide_d Date: Sun, 24 Feb 2019 00:32:22 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=B8=EA=B5=90=20=EC=84=9C=EC=8B=A0=20?= =?UTF-8?q?=EC=88=98=EB=9D=BD=EC=8B=9C,=20=EA=B5=AD=EB=A9=94,=20=EC=99=B8?= =?UTF-8?q?=EA=B5=90=20=EB=91=98=EB=8B=A4=20=EB=9C=A8=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/j_diplomacy_respond_letter.php | 11 +++++++++++ hwe/sammo/DiplomaticMessage.php | 14 ++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/hwe/j_diplomacy_respond_letter.php b/hwe/j_diplomacy_respond_letter.php index a8e492c7..294f3fc4 100644 --- a/hwe/j_diplomacy_respond_letter.php +++ b/hwe/j_diplomacy_respond_letter.php @@ -112,6 +112,17 @@ $msg = new Message( ); $msgID = $msg->send(); +$msg = new Message( + Message::MSGTYPE_NATIONAL, + $src, + $dest, + $msgText, + $now, + $unlimited, + ['invalid' => true] +); +$msgID = $msg->send(); + Json::die([ 'result'=>true, 'reason'=>'success' diff --git a/hwe/sammo/DiplomaticMessage.php b/hwe/sammo/DiplomaticMessage.php index 183d2e0a..2bb69009 100644 --- a/hwe/sammo/DiplomaticMessage.php +++ b/hwe/sammo/DiplomaticMessage.php @@ -345,6 +345,20 @@ class DiplomaticMessage extends Message{ $this->invalidate(); $newMsg->send(); + $newMsg = new Message( + self::MSGTYPE_DIPLOMACY, + $this->dest, + $this->src, + "【외교】{$year}년 {$month}월: {$this->src->nationName}{$josaYi} {$this->dest->nationName}에게 제안한 {$this->diplomacyDetail}{$this->diplomacyName} 동의.", + new \DateTime(), + new \DateTime('9999-12-31'), + [ + 'delete'=>$this->id, + 'silence'=>true, + ] + ); + $newMsg->send(); + return self::ACCEPTED; }