From 46eda74a6fc8c038236bf07efe744dddbae4153f Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 9 Feb 2018 02:58:45 +0900 Subject: [PATCH] =?UTF-8?q?=EC=99=B8=EA=B5=90=EC=84=9C=EC=8B=A0=EC=9D=84?= =?UTF-8?q?=20=EC=9C=84=ED=95=9C=20mailbox=20code=EB=A1=9C=208000=EB=B2=88?= =?UTF-8?q?=EB=8C=80=20=EC=A7=80=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- twe/j_msgsubmit.php | 9 ++++++++- twe/schema.php | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/twe/j_msgsubmit.php b/twe/j_msgsubmit.php index b28ac316..3545e2e2 100644 --- a/twe/j_msgsubmit.php +++ b/twe/j_msgsubmit.php @@ -131,7 +131,14 @@ if($destMailbox == 9999) { } sendMessage('national', $src, $dest, $msg, $date); - + +} elseif($destMailbox >= 8000){ + //외교 서신은 j_msgsubmit으로 보낼 수 없음. + returnJson([ + 'result' => false, + 'reason' => '존재하지 않는 유저입니다.', + 'redirect' => NULL + ]); // 개인 메세지 } elseif($destMailbox > 0) { $last_msg = new DateTime(util::array_get($_SESSION['last_msg'], '0000-00-00')); diff --git a/twe/schema.php b/twe/schema.php index ca2ebe36..7a764e65 100644 --- a/twe/schema.php +++ b/twe/schema.php @@ -534,7 +534,7 @@ $game_schema = " $message_schema = " CREATE TABLE `message` ( `id` INT(11) NOT NULL AUTO_INCREMENT, - `mailbox` INT(11) NOT NULL COMMENT '9999 == public, >= 9000 national', + `mailbox` INT(11) NOT NULL COMMENT '9999 == public, >= 9000 national, >= 8000 diplomacy', `type` ENUM('private','national','public','diplomacy') NOT NULL, `is_sender` BIT(1) NOT NULL, `src` INT(11) NOT NULL,