From d5e5aa1cc5351b064df82642e7d6137320248218 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 7 Jun 2023 17:36:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=8F=AA=E8=AE=A4?= =?UTF-8?q?=E8=AF=860=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/cp_r/anniversary.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/route/cp_r/anniversary.go b/route/cp_r/anniversary.go index 17540c8..ebd9c57 100644 --- a/route/cp_r/anniversary.go +++ b/route/cp_r/anniversary.go @@ -124,8 +124,13 @@ func PageAnniversary(c *gin.Context) (*mycontext.MyContext, error) { if v.Type == cp_e.AnniversaryItemTypeAnniversary { timestamp = calcNextAnniversary(timestamp) } + // 客户端只认识0 1 + Type := v.Type + if v.Type != cp_e.AnniversaryItemTypeAnniversary { + Type = cp_e.AnniversaryItemTypeNormal + } response = append(response, cp_cv.CvCpAnniversary{ - Type: v.Type, + Type: Type, Id: v.ID, Content: v.Content, Timestamp: timestamp, -- 2.22.0