diff --git a/route/user_r/bag.go b/route/user_r/bag.go index 623d7c4c5bbf54e393833e566185054d4dc9bca3..bd539cc919c3a25c914acf4616df1c287ad24843 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"},