feat: 优化

This commit is contained in:
meilin.huang
2022-01-13 17:06:04 +08:00
parent 1216ce3b52
commit 1df943d825
13 changed files with 67 additions and 44 deletions

View File

@@ -171,7 +171,7 @@ func (r *Redis) SetHashValue(rc *ctx.ReqCtx) {
ri.Cli.Del(key)
for _, v := range hashValue.Value {
res := ri.Cli.HSet(key, v["key"].(string), v["value"])
biz.ErrIsNilAppendErr(res.Err(), "保存hash值失败")
biz.ErrIsNilAppendErr(res.Err(), "保存hash值失败: %s")
}
if hashValue.Timed != -1 {
ri.Cli.Expire(key, time.Second*time.Duration(hashValue.Timed))