fix msk style

This commit is contained in:
2026-09-14 11:29:32 +08:00
parent 20f10260e6
commit 09f5079370

View File

@@ -888,7 +888,15 @@ func get(c *fiber.Ctx) error {
status := "normal"
if user["msk"] != nil {
msk := user["msk"].(map[string]any)
useCharacterId = int(msk["useCharacterId"].(float64))
useCharacterId = int(func() float64 {
switch v := msk["useCharacterId"].(type) {
case float64:
return v
case int:
return float64(v)
}
return 0
}())
status = msk["status"].(string)
}
return map[string]any{