修改信息

This commit is contained in:
孙肖扬 2025-06-24 15:53:10 +08:00
parent eca1a2329e
commit 56c17a709f

View File

@ -276,14 +276,20 @@ func BundleDetailV2(req *bundle.BundleDetailRequest) (res *bundle.BundleDetailRe
if detail.BundleProfileLang != nil && len(detail.BundleProfileLang) > 0 { if detail.BundleProfileLang != nil && len(detail.BundleProfileLang) > 0 {
for _, lang := range detail.BundleProfileLang { for _, lang := range detail.BundleProfileLang {
bundleProfileLang := &bundle.BundleProfileLang{ bundleProfileLang := &bundle.BundleProfileLang{
Uuid: lang.UUID, Uuid: lang.UUID,
Name: lang.Name, Name: lang.Name,
Price: lang.Price, Price: lang.Price,
PriceType: lang.PriceType, PriceType: lang.PriceType,
Content: lang.Content, Content: lang.Content,
Language: lang.Language, Language: lang.Language,
CreatedAt: time.Unix(lang.CreatedAt, 0).Format("2006-01-02 15:04:05"), ImgOption: int32(detail.ImgOption),
UpdatedAt: time.Unix(int64(lang.UpdatedAt), 0).Format("2006-01-02 15:04:05"), 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) bundleProfileLangs = append(bundleProfileLangs, bundleProfileLang)
} }