Commit 49ce7d44 authored by hujiebin's avatar hujiebin

feat:加一个ts防止丢失

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