feat: 优化发货凭证与字段兼容,隐藏内部积分展示并增强DLC角色解析

This commit is contained in:
yml2213
2026-09-14 17:37:53 +08:00
parent 5f642eb7a6
commit bf9614569e
4 changed files with 9 additions and 5 deletions
+6 -2
View File
@@ -138,12 +138,16 @@ func extractGameFields(raw string, out *OpenOrderQuery) {
}
}
if out.GameUID == "" {
if v, ok := m["game_uid"].(string); ok {
if v, ok := m["game_uid"].(string); ok && v != "" {
out.GameUID = v
} else if v, ok := m["game_account"].(string); ok && v != "" {
out.GameUID = v
}
}
if out.RoleName == "" {
if v, ok := m["role_name"].(string); ok {
if v, ok := m["role_name"].(string); ok && v != "" {
out.RoleName = v
} else if v, ok := m["game_account_role_name"].(string); ok && v != "" {
out.RoleName = v
}
}