fix(admin): 修复订单列表source_type=4/5显示未知的问题

- source_type=4: 区分购买次卡/次卡抽奖/一番赏
- source_type=5: 区分运费订单/直播间抽奖
This commit is contained in:
Zuncle 2026-03-20 17:45:19 +08:00
parent a671fc14c6
commit 9cb4aaa511

View File

@ -334,6 +334,28 @@ func (h *handler) ListPayOrders() core.HandlerFunc {
}
} else if o.SourceType == 3 {
bizMode = "系统发放"
} else if o.SourceType == 4 {
if strings.HasPrefix(o.OrderNo, "GP") {
bizMode = "购买次卡"
} else if strings.Contains(o.Remark, "use_game_pass") {
bizMode = "次卡抽奖"
} else {
bizMode = "一番赏"
}
aid := orderActivityMap[o.ID]
if aid > 0 {
if act, ok := activityMap[aid]; ok {
activityName = act.Name
}
}
} else if o.SourceType == 5 {
if strings.HasPrefix(o.OrderNo, "SF") {
bizMode = "运费订单"
} else if strings.Contains(o.Remark, "直播间") {
bizMode = "直播间抽奖"
} else {
bizMode = "直播间"
}
}
item := map[string]any{