Browse Source

修复

master v0.7.5
guzeng 3 years ago
parent
commit
ef2327d159
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      user.client.go

+ 3
- 7
user.client.go View File

@ -46,7 +46,7 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err
"Type": res.GetType(),
"ThirdId": res.GetThirdId(),
"Platform": res.GetPlatform(),
"LockFans": res.LockFans(),
"LockFans": res.GetLockFans(),
}, nil
}
@ -59,9 +59,7 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err
func GetUserByUsername(dbname, username string, url ...string) (*UserResponse, error) {
conn, err := rpc_server_conn(url...)
if err != nil {
return map[string]string{}, err
}
if err != nil {
return nil, err
}
@ -86,9 +84,7 @@ func GetUserByUsername(dbname, username string, url ...string) (*UserResponse, e
func GetUserByUsercode(dbname, usercode string, url ...string) (*UserResponse, error) {
conn, err := rpc_server_conn(url...)
if err != nil {
return map[string]string{}, err
}
if err != nil {
return nil, err
}


Loading…
Cancel
Save