fix msk style
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user