From fafc463f2aa011a060d599783d4af501acf0230e Mon Sep 17 00:00:00 2001 From: mklee Date: Wed, 6 Sep 2023 19:34:47 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=9D=B4=EB=AF=BC=EC=9A=B0]=20=EC=BA=90?= =?UTF-8?q?=EB=A6=AD=ED=84=B0=20=EC=83=9D=EC=84=B1=20=EC=A0=9C=ED=95=9C=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84=20(=EB=8C=80=EC=8B=A0=20=EC=BB=A4=EB=B0=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/api.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/api.go b/core/api.go index 536b380..cef7d58 100644 --- a/core/api.go +++ b/core/api.go @@ -405,15 +405,16 @@ func (caller apiCaller) lockcreatecharAPI(w http.ResponseWriter, r *http.Request curregion, _ := gocommon.ReadStringFormValue(r.Form, "region") - var locked map[string]any + locked := map[string]any{ + "lock": false, + } + for _, regioninfo := range mg { region := regioninfo["divisions"].(primitive.M) for idx, rl := range region { if idx == curregion { if rl.(primitive.M)["lockcreatechar"].(bool) { locked["lock"] = true - } else { - locked["lock"] = false } } }