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
+1
View File
@@ -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)
}
// 源头侧接口:上游发货平台查询订单并回传发货结果。
+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
}
}