Commit f5f4c255 authored by hujiebin's avatar hujiebin

Update anniversary.go

parent 4668f8a0
...@@ -121,7 +121,7 @@ func PageAnniversary(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -121,7 +121,7 @@ func PageAnniversary(c *gin.Context) (*mycontext.MyContext, error) {
anniversary := cp_m.GetAllCpAnniversary(model, userId) anniversary := cp_m.GetAllCpAnniversary(model, userId)
for _, v := range anniversary { for _, v := range anniversary {
timestamp := v.Timestamp timestamp := v.Timestamp
if v.Type == cp_e.AnniversaryItemTypeAnniversary { if v.Type == cp_e.AnniversaryItemTypeAnniversary && timestamp > 0 {
timestamp = calcNextAnniversary(timestamp) timestamp = calcNextAnniversary(timestamp)
} }
// 客户端只认识0 1 // 客户端只认识0 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment