From 2edf4b82ae6cff3f9c23d094087bf64be8282ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=80=E5=B0=BC=E9=BE=9F?= <365252428@qq.com> Date: Wed, 16 Jul 2025 19:01:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/orderRecordsDao.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/dao/orderRecordsDao.go b/internal/dao/orderRecordsDao.go index 14b5f95..222bbfe 100644 --- a/internal/dao/orderRecordsDao.go +++ b/internal/dao/orderRecordsDao.go @@ -507,6 +507,10 @@ func OrderRecordsListV2(req *bundle.OrderRecordsRequestV2) (res *bundle.OrderRec amount := float32(sub.Amount) if existing, ok := addMap[orderAddNo]; ok { existing.Amount += amount + // 仅当 VideoNum 尚未设置且当前是 ServiceType == 1 时赋值 + if existing.VideoNum == 0 && sub.ServiceType == 1 { + existing.VideoNum = sub.Num + } } else { var videoNum int32 if sub.ServiceType == 1 {