diff --git a/route/cp_r/anniversary.go b/route/cp_r/anniversary.go index 246d59193d6bb9d081a1f265678b1a4a99801ce6..ff848682d2b3da962a98993fdcdf77c9118e2e43 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