[이민우] 캐릭터 생성 제한 구현 (대신 커밋)

This commit is contained in:
2023-09-06 19:34:47 +09:00
parent e2bec481f0
commit fafc463f2a

View File

@ -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
}
}
}