Commit 1b4382ea authored by hujiebin's avatar hujiebin

feat:

parent c0cd45cb
......@@ -122,7 +122,7 @@ func GetNeedRemindCpAnniversary(model *domain.Model) []CpAnniversary {
now := time.Now().Unix()
for i, v := range rows {
ts := CalcNextAnniversary(v.Timestamp)
if now > ts {
if now > ts && now-ts <= 86400 {
res = append(res, rows[i])
}
}
......@@ -142,7 +142,7 @@ func GetUserTodayCpAnniversary(model *domain.Model, cpId mysql.ID) []CpAnniversa
now := time.Now().Unix()
for i, v := range rows {
ts := CalcNextAnniversary(v.Timestamp)
if now > ts {
if now > ts && now-ts <= 86400 {
res = append(res, rows[i])
}
}
......
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