Commit d5e5aa1c authored by hujiebin's avatar hujiebin

客户端只认识0 1

parent 8a0e1016
......@@ -124,8 +124,13 @@ func PageAnniversary(c *gin.Context) (*mycontext.MyContext, error) {
if v.Type == cp_e.AnniversaryItemTypeAnniversary {
timestamp = calcNextAnniversary(timestamp)
}
// 客户端只认识0 1
Type := v.Type
if v.Type != cp_e.AnniversaryItemTypeAnniversary {
Type = cp_e.AnniversaryItemTypeNormal
}
response = append(response, cp_cv.CvCpAnniversary{
Type: v.Type,
Type: Type,
Id: v.ID,
Content: v.Content,
Timestamp: timestamp,
......
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