diff --git a/tmp_map/default.jpg b/tmp_map/default.jpg
new file mode 100644
index 00000000..c7f7631c
Binary files /dev/null and b/tmp_map/default.jpg differ
diff --git a/tmp_map/pic_1.jpg b/tmp_map/pic_1.jpg
new file mode 100644
index 00000000..f1500c28
Binary files /dev/null and b/tmp_map/pic_1.jpg differ
diff --git a/tmp_map/pic_781.jpg b/tmp_map/pic_781.jpg
new file mode 100644
index 00000000..da02ef40
Binary files /dev/null and b/tmp_map/pic_781.jpg differ
diff --git a/tmp_msg/fresh_result.json b/tmp_msg/fresh_result.json
index 56bae46c..8e4f2bb3 100644
--- a/tmp_msg/fresh_result.json
+++ b/tmp_msg/fresh_result.json
@@ -1,17 +1,385 @@
{
"result":true,
- "server-uuid":"twe-d1af658a-f094-4303-9496-9a27a8180b0b",
+ "server":"d1af658a-f094-4303-9496-9a27a8180b0b",
"sequence":1122,
"national":[
-
+ {
+ "id":1009,
+ "time":"2018-02-10 22:05:09",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":1,
+ "name":"Hide_D3",
+ "icon":"pic_781.jpg",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸9"
+ },{
+ "id":1008,
+ "time":"2018-02-10 22:05:08",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸8"
+ },{
+ "id":1007,
+ "time":"2018-02-10 22:05:07",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸7"
+ },{
+ "id":1006,
+ "time":"2018-02-10 22:05:06",
+ "isSender":true,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9000,
+ "nation_id":0
+ },
+ "text":"국가->재야"
+ },{
+ "id":1005,
+ "time":"2018-02-10 22:05:05",
+ "isSender":true,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9002,
+ "nation_id":2,
+ "nation":"연구소2",
+ "color":"#ff0000"
+ },
+ "text":"아국->타국"
+ },{
+ "id":1004,
+ "time":"2018-02-10 22:05:04",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":2,
+ "name":"Hide_Dx2",
+ "nation":"연구소2",
+ "color":"#ff0000"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"타국->아국"
+ },{
+ "id":1003,
+ "time":"2018-02-10 22:05:03",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸3"
+ },{
+ "id":1002,
+ "time":"2018-02-10 22:05:02",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸2"
+ },{
+ "id":1001,
+ "time":"2018-02-10 22:05:01",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸1"
+ },
+ {
+ "id":1000,
+ "time":"2018-02-10 22:04:00",
+ "isSender":false,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"에붸붸붸0"
+ }
],
"public":[
-
+
+ {
+ "id":1012,
+ "time":"2018-02-10 22:05:01",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":0,
+ "name":"Hide_Dy"
+ },
+ "dest":{
+ "id":9999
+ },
+ "text":"전메놀이2, 재야"
+ },{
+ "id":1011,
+ "time":"2018-02-10 22:05:01",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":2,
+ "name":"Hide_Dx2",
+ "nation":"연구소2",
+ "color":"#ff0000",
+ "icon":"pic_781.jpg"
+ },
+ "dest":{
+ "id":9999
+ },
+ "text":"전메놀이1"
+ },{
+ "id":1010,
+ "time":"2018-02-10 22:05:00",
+ "isSender":false,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":9999
+ },
+ "text":"전메놀이0"
+ }
],
"private":[
-
+ {
+ "id":1025,
+ "time":"2018-02-10 22:04:04",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":2,
+ "name":"Hide_Dx2",
+ "nation":"연구소2",
+ "color":"#ff0000"
+ },
+ "dest":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"연구소2로 망명 권유 서신",
+ "option":{
+ "used":false,
+ "action":"scout"
+ }
+ },{
+ "id":1024,
+ "time":"2018-02-10 22:04:04",
+ "isSender":false,
+ "src":{
+ "id":12,
+ "nation_id":0,
+ "name":"Hide_Dy"
+ },
+ "dest":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"재야로부터 갠메(수신)"
+ },{
+ "id":1023,
+ "time":"2018-02-10 22:04:03",
+ "isSender":true,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":21,
+ "nation_id":2,
+ "name":"Hide_Dx2",
+ "nation":"연구소2",
+ "color":"#ff0000"
+ },
+ "text":"타국 갠메(송신)"
+ },{
+ "id":1022,
+ "time":"2018-02-10 22:04:02",
+ "isSender":true,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"아국 갠메(수신)"
+ },{
+ "id":1021,
+ "time":"2018-02-10 22:04:01",
+ "isSender":true,
+ "src":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"아국 갠메(수신)"
+ },{
+ "id":1020,
+ "time":"2018-02-10 22:04:00",
+ "isSender":true,
+ "src":{
+ "id":11,
+ "nation_id":1,
+ "name":"Hide_D",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "dest":{
+ "id":12,
+ "nation_id":1,
+ "name":"Hide_D2",
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"아국 갠메"
+ }
],
"diplomacy":[
-
+ {
+ "id":1030,
+ "time":"2018-02-10 22:05:04",
+ "isSender":false,
+ "src":{
+ "id":21,
+ "nation_id":2,
+ "name":"Hide_Dx2",
+ "nation":"연구소2",
+ "color":"#ff0000",
+ "icon":"pic_1.jpg"
+ },
+ "dest":{
+ "id":9001,
+ "nation_id":1,
+ "nation":"연구소",
+ "color":"#ffd700"
+ },
+ "text":"타국->아국",
+ "option":{
+ "used":false,
+ "result":false,
+ "until":[210, 9],
+ "action":"ally",
+ "allyYear":20,
+ "allyText":"메롱"
+ }
+ }
]
}
\ No newline at end of file
diff --git a/tmp_msg/msg.js b/tmp_msg/msg.js
index 9ea064cb..58098c23 100644
--- a/tmp_msg/msg.js
+++ b/tmp_msg/msg.js
@@ -34,7 +34,11 @@ var messageTemplate = `
▶
<%e(dest.name)%>:<%e(dest.nation)%>
]
- <%} else if(msgType == 'national') {%>
+ <%} else if(msgType == 'national' && src.nation_id == dest.nation_id){%>
+ [
+ <%e(src.name)%>:<%e(src.nation)%>
+ ]
+ <%} else if(msgType == 'national' || msgType == 'diplomacy'){%>
[
<%e(src.name)%>:<%e(src.nation)%>
▶
diff --git a/tmp_msg/tmp_template.html b/tmp_msg/tmp_template.html
index dded576a..0608ca6f 100644
--- a/tmp_msg/tmp_template.html
+++ b/tmp_msg/tmp_template.html
@@ -30,7 +30,11 @@
▶
<%e(dest.name)%>:<%e(dest.nation)%>
]
- <%} else if(msgType == 'national') {%>
+ <%} else if(msgType == 'national' && src.nation_id == dest.nation_id){%>
+ [
+ <%e(src.name)%>:<%e(src.nation)%>
+ ]
+ <%} else if(msgType == 'national' || msgType == 'diplomacy'){%>
[
<%e(src.name)%>:<%e(src.nation)%>
▶
diff --git a/tmp_msg/update_national_result.json b/tmp_msg/update_national_result.json
index e4c19b01..1547750c 100644
--- a/tmp_msg/update_national_result.json
+++ b/tmp_msg/update_national_result.json
@@ -1,6 +1,6 @@
{
"result":true,
- "server-uuid":"twe-d1af658a-f094-4303-9496-9a27a8180b0b",
+ "server":"d1af658a-f094-4303-9496-9a27a8180b0b",
"sequence":1357,
"national":[
diff --git a/tmp_msg/update_private_result.json b/tmp_msg/update_private_result.json
index fc6906fb..29182742 100644
--- a/tmp_msg/update_private_result.json
+++ b/tmp_msg/update_private_result.json
@@ -1,6 +1,6 @@
{
"result":true,
- "server-uuid":"twe-d1af658a-f094-4303-9496-9a27a8180b0b",
+ "server":"d1af658a-f094-4303-9496-9a27a8180b0b",
"sequence":1366,
"national":[
diff --git a/tmp_msg/update_public_result.json b/tmp_msg/update_public_result.json
index c50cf395..7ab665be 100644
--- a/tmp_msg/update_public_result.json
+++ b/tmp_msg/update_public_result.json
@@ -1,12 +1,11 @@
{
"result":true,
- "server-uuid":"twe-d1af658a-f094-4303-9496-9a27a8180b0b",
+ "server":"d1af658a-f094-4303-9496-9a27a8180b0b",
"sequence":1811,
"national":[
-
+
],
"public":[
-
],
"private":[