2 Commits

Author SHA1 Message Date
  listen 459668c150 去除日志 2 years ago
  listen 609515783b 修复bug 3 years ago
4 changed files with 14 additions and 5 deletions
Split View
  1. +0
    -3
      client.siteinfo.go
  2. +9
    -1
      code_bank.go
  3. +1
    -1
      go.mod
  4. +4
    -0
      go.sum

+ 0
- 3
client.siteinfo.go View File

@ -2,7 +2,6 @@ package siterpc
import (
"encoding/json"
"log"
"strconv"
"time"
@ -80,8 +79,6 @@ func GetSiteInfoByHost(host string, params ...string) (*SiteInfoRes, error) {
res_data, err := GetOrgData(res)
log.Println(res_data, err)
if err != nil {
return nil, err
}


+ 9
- 1
code_bank.go View File

@ -1,6 +1,7 @@
package siterpc
import (
"encoding/json"
"errors"
)
@ -41,9 +42,16 @@ func GetOneCode(site_id, dbname string, url ...string) (string, error) {
return "", err
}
var bankCode string
err = json.Unmarshal([]byte(res_data_de),&bankCode)
if err != nil {
return "", err
}
if res_data_de == "" {
return "", nil
}
return res_data_de, nil
return bankCode, nil
}

+ 1
- 1
go.mod View File

@ -6,7 +6,7 @@ require (
git.tetele.net/tgo/conf v0.33.1
git.tetele.net/tgo/crypter v0.2.2
git.tetele.net/tgo/helper v0.1.8
github.com/chai2010/protorpc v1.0.0
github.com/chai2010/protorpc v1.1.3
github.com/golang/protobuf v1.5.2
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e // indirect
)

+ 4
- 0
go.sum View File

@ -6,12 +6,16 @@ git.tetele.net/tgo/helper v0.1.8 h1:6eeUYmO0Xv2n+HluHKAOm6y2CcLmr2QPnGxzHy3yyWc=
git.tetele.net/tgo/helper v0.1.8/go.mod h1:89mQwyfqZ+t8YXiVwzSxA70gLlUNqoZGDEUxvV46jXk=
github.com/chai2010/protorpc v1.0.0 h1:aJ45G9sl1utSKo35EqnBSTs5jqTpdJDJAuZMMYPAtFo=
github.com/chai2010/protorpc v1.0.0/go.mod h1:woR3WwjaQDqFjlzdVsFEKiK5Ur12QL8mYxVPjfr5z54=
github.com/chai2010/protorpc v1.1.3 h1:VJK5hIoZn0XCGol0GmbxZkUG6FbTI5LP2Lam6RVd15w=
github.com/chai2010/protorpc v1.1.3/go.mod h1:/wO0kiyVdu7ug8dCMrA2yDr2vLfyhsLEuzLa9J2HJ+I=
github.com/golang/protobuf v1.0.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049 h1:K9KHZbXKpGydfDN0aZrsoHpLJlZsBrGMFWbgLDGnPZk=
github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI=


Loading…
Cancel
Save