feat: 优化发货凭证与字段兼容,隐藏内部积分展示并增强DLC角色解析
This commit is contained in:
@@ -113,6 +113,7 @@ func Setup(h *Handlers) *gin.Engine {
|
||||
delivery.POST("/orders/:order_no/bind", h.Delivery.Bind)
|
||||
delivery.POST("/orders/:order_no/submit", h.Delivery.Submit)
|
||||
delivery.GET("/image-proxy", h.Delivery.ImageProxy)
|
||||
delivery.HEAD("/image-proxy", h.Delivery.ImageProxy)
|
||||
}
|
||||
|
||||
// 源头侧接口:上游发货平台查询订单并回传发货结果。
|
||||
|
||||
@@ -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