From e6a4966244a3f8ded08e82befce7e4c63765d98e Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 7 Jul 2023 16:29:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=96=87=E5=AD=97=E7=A4=BC?= =?UTF-8?q?=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/user_r/bag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/user_r/bag.go b/route/user_r/bag.go index 623d7c4..bd539cc 100644 --- a/route/user_r/bag.go +++ b/route/user_r/bag.go @@ -58,7 +58,7 @@ func UserBag(c *gin.Context) (*mycontext.MyContext, error) { RemainDays: int(bagGift.EndTime.Sub(time.Now()).Hours() / 24), HasGiftText: gift.HasGiftText, } - if gift.ID == cp_e.CpConfessionGiftId { // 如果是cp告白礼物 + if gift.ID == cp_e.CpConfessionGiftId || gift.HasGiftText { // 如果是cp告白礼物 info.TextStyleList = make([]*user_cv.TextStyle, 0, 2) info.TextStyleList = append(info.TextStyleList, &user_cv.TextStyle{TextColor: "#ce0083", TextSize: 20, TextKey: "sender_name"}, -- 2.22.0