From f5f4c25507306c729e324015481ee0fc883b2471 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Tue, 13 Jun 2023 17:24:00 +0800 Subject: [PATCH] Update anniversary.go --- route/cp_r/anniversary.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/cp_r/anniversary.go b/route/cp_r/anniversary.go index 246d591..ff84868 100644 --- a/route/cp_r/anniversary.go +++ b/route/cp_r/anniversary.go @@ -121,7 +121,7 @@ func PageAnniversary(c *gin.Context) (*mycontext.MyContext, error) { anniversary := cp_m.GetAllCpAnniversary(model, userId) for _, v := range anniversary { timestamp := v.Timestamp - if v.Type == cp_e.AnniversaryItemTypeAnniversary { + if v.Type == cp_e.AnniversaryItemTypeAnniversary && timestamp > 0 { timestamp = calcNextAnniversary(timestamp) } // 客户端只认识0 1 -- 2.22.0