Commit 49ce7d44 authored by hujiebin's avatar hujiebin

feat:加一个ts防止丢失

parent 65c74be0
...@@ -13,6 +13,7 @@ type GroupPowerGradeExp struct { ...@@ -13,6 +13,7 @@ type GroupPowerGradeExp struct {
Exp mysql.Num Exp mysql.Num
UserId mysql.ID UserId mysql.ID
Remark string Remark string
Ts int64
} }
// redis队列缓冲GroupPowerGradeExp升级内容 // redis队列缓冲GroupPowerGradeExp升级内容
...@@ -23,6 +24,7 @@ func QueueGroupPowerGradeExp(model *domain.Model, groupPowerId mysql.ID, exp mys ...@@ -23,6 +24,7 @@ func QueueGroupPowerGradeExp(model *domain.Model, groupPowerId mysql.ID, exp mys
Exp: exp, Exp: exp,
UserId: userId, UserId: userId,
Remark: remark, Remark: remark,
Ts: time.Now().Unix(),
} }
body, _ := json.Marshal(data) body, _ := json.Marshal(data)
return model.Redis.RPush(model, queue, string(body)).Err() return model.Redis.RPush(model, queue, string(body)).Err()
......
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