feat: 优化发货凭证与字段兼容,隐藏内部积分展示并增强DLC角色解析
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user