From bd92e877c0cb8eecef512cfc4d3bcf7796a108ff Mon Sep 17 00:00:00 2001 From: guzeng Date: Sat, 23 Oct 2021 18:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fans.client.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/fans.client.go b/fans.client.go index 110c290..2967fe8 100644 --- a/fans.client.go +++ b/fans.client.go @@ -2,12 +2,6 @@ package userrpc import ( "encoding/json" - "errors" - "strconv" - "time" - - "git.tetele.net/tgo/crypter" - "github.com/golang/protobuf/proto" ) /** @@ -19,7 +13,7 @@ func Fans(site_id, dbname, user_id, business_id string, url ...string) error { conn, err := rpc_server_conn(url...) if err != nil { - return nil, err + return err } defer conn.Close() @@ -31,7 +25,7 @@ func Fans(site_id, dbname, user_id, business_id string, url ...string) error { data_json, err := json.Marshal(data) if err != nil { - return nil, err + return err } SetReqData(data) @@ -41,10 +35,10 @@ func Fans(site_id, dbname, user_id, business_id string, url ...string) error { err = conn.Fans(req, res) if err != nil { - return nil, err + return err } - _, err := GetResData(res) + _, err = GetResData(res) return err }