From 9cb4aaa511275ac5da4a752d96b9faa94c2aabbc Mon Sep 17 00:00:00 2001 From: Zuncle <34310384@qq.com> Date: Fri, 20 Mar 2026 17:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8source=5Ftype=3D4/5=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E6=9C=AA=E7=9F=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - source_type=4: 区分购买次卡/次卡抽奖/一番赏 - source_type=5: 区分运费订单/直播间抽奖 --- internal/api/admin/pay_orders_admin.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/internal/api/admin/pay_orders_admin.go b/internal/api/admin/pay_orders_admin.go index 384e3a0..def264a 100755 --- a/internal/api/admin/pay_orders_admin.go +++ b/internal/api/admin/pay_orders_admin.go @@ -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{