Browse Source

修改hash查询

master v0.1.2
guzeng 3 years ago
parent
commit
13bef6ff0f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      string.go

+ 2
- 2
string.go View File

@ -16,7 +16,7 @@ func GetByKey(key string, url ...string) (string, error) {
conn, _, err := DialRedisService("tcp", user_rpc_url)
if err != nil {
return nil, err
return "", err
}
defer conn.Close()
@ -30,5 +30,5 @@ func GetByKey(key string, url ...string) (string, error) {
return "", err
}
return res.GetString(), nil
return res.GetString_(), nil
}

Loading…
Cancel
Save