Browse Source

修改绑定第三方参数

master v0.2.3
guzeng 3 years ago
parent
commit
08c15f6797
2 changed files with 13 additions and 1 deletions
  1. +1
    -1
      common.go
  2. +12
    -0
      sign.go

+ 1
- 1
common.go View File

@ -31,7 +31,7 @@ func rpc_server_conn(url ...string) (*UserServiceClient, error) {
conn, _, err := DialUserService("tcp", user_rpc_url)
if err != nil {
return map[string]string{}, err
return nil, err
}
return conn, nil


+ 12
- 0
sign.go View File

@ -1,5 +1,17 @@
package userrpc
import (
"crypto/md5"
"encoding/hex"
"encoding/json"
"errors"
"strconv"
"strings"
"time"
"git.tetele.net/tgo/crypter"
)
/**
* 签名
*/


Loading…
Cancel
Save