Commit ed479ac1 authored by 黄智's avatar 黄智

调整序列化错误

parent 2b472dcf
...@@ -56,7 +56,7 @@ func (u *UserSvc) Login() (msg string, uuidStr string, last_login string, err er ...@@ -56,7 +56,7 @@ func (u *UserSvc) Login() (msg string, uuidStr string, last_login string, err er
if err != nil { if err != nil {
return "", "", "", resp.RedisConnectError.WithError(err) return "", "", "", resp.RedisConnectError.WithError(err)
} }
lockKey := fmt.Sprintf("so-operation-user-lock-%s", userInfo.Id) lockKey := fmt.Sprintf("so-operation-user-lock-%v", userInfo.Id)
haslock, err := redisCli.Get(lockKey) haslock, err := redisCli.Get(lockKey)
if err != nil && err != redis.Nil { if err != nil && err != redis.Nil {
......
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