From 56c17a709f23c282ab7b4d3b2df8439aa750689f Mon Sep 17 00:00:00 2001 From: sxy <3187870250@qq.com> Date: Tue, 24 Jun 2025 15:53:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/logic/bundleLogic.go | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index 6b9ef19..ea1d643 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -276,14 +276,20 @@ func BundleDetailV2(req *bundle.BundleDetailRequest) (res *bundle.BundleDetailRe if detail.BundleProfileLang != nil && len(detail.BundleProfileLang) > 0 { for _, lang := range detail.BundleProfileLang { bundleProfileLang := &bundle.BundleProfileLang{ - Uuid: lang.UUID, - Name: lang.Name, - Price: lang.Price, - PriceType: lang.PriceType, - Content: lang.Content, - Language: lang.Language, - CreatedAt: time.Unix(lang.CreatedAt, 0).Format("2006-01-02 15:04:05"), - UpdatedAt: time.Unix(int64(lang.UpdatedAt), 0).Format("2006-01-02 15:04:05"), + Uuid: lang.UUID, + Name: lang.Name, + Price: lang.Price, + PriceType: lang.PriceType, + Content: lang.Content, + Language: lang.Language, + ImgOption: int32(detail.ImgOption), + BgImg1: detail.BgImg1, + BgImg2: detail.BgImg2, + FontColor: detail.FontColor, + Sort: detail.Sort, + ShelfStatus: detail.ShelfStatus, + CreatedAt: time.Unix(lang.CreatedAt, 0).Format("2006-01-02 15:04:05"), + UpdatedAt: time.Unix(int64(lang.UpdatedAt), 0).Format("2006-01-02 15:04:05"), } bundleProfileLangs = append(bundleProfileLangs, bundleProfileLang) }