Browse Source

修改方法

master v0.8.3
guzeng 3 years ago
parent
commit
bd92e877c0
1 changed files with 4 additions and 10 deletions
  1. +4
    -10
      fans.client.go

+ 4
- 10
fans.client.go View File

@ -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
}

Loading…
Cancel
Save