From ef2327d159505a493a017af1cd9f20bb9ad5d2b9 Mon Sep 17 00:00:00 2001 From: guzeng Date: Mon, 27 Sep 2021 10:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user.client.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/user.client.go b/user.client.go index 6c5ffed..11e54da 100644 --- a/user.client.go +++ b/user.client.go @@ -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 }