From 401167ca314a692538c0ead3c161a95157bab436 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 1 Mar 2018 02:58:35 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=88=EB=A9=94=EC=8B=9C=EC=A7=80=20?= =?UTF-8?q?=EB=B3=80=EC=88=98=EB=AA=85=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tmp_msg/basic_info.json | 4 ++-- tmp_msg/msg.js | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tmp_msg/basic_info.json b/tmp_msg/basic_info.json index 9cb74fd7..426b7fc1 100644 --- a/tmp_msg/basic_info.json +++ b/tmp_msg/basic_info.json @@ -1,6 +1,6 @@ { - "last":21, - "myNationMailbox":9001, + "lastContact":21, + "myNationID":1, "generalID":11, "isChief":true } \ No newline at end of file diff --git a/tmp_msg/msg.js b/tmp_msg/msg.js index 918f5722..c9810e07 100644 --- a/tmp_msg/msg.js +++ b/tmp_msg/msg.js @@ -252,8 +252,8 @@ function refreshMailboxList(obj){ //최근 대화상대 if(lastMsg.id){ - var $last = $(''.format(lastMsg.id, lastMsg.name)); - $favorite.append($last); + var $lastContact = $(''.format(lastMsg.id, lastMsg.name)); + $favorite.append($lastContact); } //TODO:운영자를 추가하는 코드도 넣을 것. @@ -271,12 +271,13 @@ function refreshMailboxList(obj){ function registerGlobal(basicInfo){ myNation = { - 'mailbox':basicInfo.myNationMailbox, + 'id':basicInfo.myNationID, + 'mailbox':basicInfo.myNationID+9000, 'color':'#000000', 'nation':'재야' }; lastMsg = { - id : basicInfo.last + id : basicInfo.lastContact }; myGeneralID = basicInfo.generalID; isChief = basicInfo.isChief;