Commit 8f567d6c authored by hujiebin's avatar hujiebin

bug

parent 8d27979c
...@@ -166,7 +166,7 @@ func GetUserTodayCpAnniversary(model *domain.Model, cpId mysql.ID) []CpAnniversa ...@@ -166,7 +166,7 @@ func GetUserTodayCpAnniversary(model *domain.Model, cpId mysql.ID) []CpAnniversa
res = append(res, rows[i]) res = append(res, rows[i])
} }
} }
return rows return res
} }
func UpdateCpAnniversaryReminded(model *domain.Model, id mysql.ID) error { func UpdateCpAnniversaryReminded(model *domain.Model, id mysql.ID) error {
......
...@@ -14,3 +14,8 @@ func TestInitCpAnniversary(t *testing.T) { ...@@ -14,3 +14,8 @@ func TestInitCpAnniversary(t *testing.T) {
}, "ar") }, "ar")
println(err) println(err)
} }
func TestCalcNextAnniversary(t *testing.T) {
t2 := cp_m.CalcNextAnniversary(1686211996)
println(t2)
}
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