diff --git a/core/cloud/commCloud/api.go b/core/cloud/commCloud/api.go index 5758230..bacc001 100644 --- a/core/cloud/commCloud/api.go +++ b/core/cloud/commCloud/api.go @@ -12,13 +12,13 @@ const ( func NewReq(method string, ipr ...string) (*hbtp.Request, error) { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.NewDoReq(host, RPCHostCode, method, ipr...) + return hbtp.NewDoReq(host, RPCHostCode, method, nil, ipr...) } func DoJson(method string, in, out interface{}, hd ...map[string]interface{}) error { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.DoRPCJson(host, RPCHostCode, method, in, out, hd...) + return hbtp.DoRPCJson(host, RPCHostCode, method, nil, in, out, hd...) } func DoString(method string, in interface{}, hd ...hbtp.Mp) (int, []byte, error) { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.DoRPCString(host, RPCHostCode, method, in, hd...) + return hbtp.DoRPCString(host, RPCHostCode, method, nil, in, hd...) } diff --git a/core/cloud/userCloud/api.go b/core/cloud/userCloud/api.go index 1ee73cc..7ee31b6 100644 --- a/core/cloud/userCloud/api.go +++ b/core/cloud/userCloud/api.go @@ -12,13 +12,13 @@ const ( func NewReq(method string, ipr ...string) (*hbtp.Request, error) { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.NewDoReq(host, RPCHostCode, method, ipr...) + return hbtp.NewDoReq(host, RPCHostCode, method, nil, ipr...) } func DoJson(method string, in, out interface{}, hd ...map[string]interface{}) error { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.DoRPCJson(host, RPCHostCode, method, in, out, hd...) + return hbtp.DoRPCJson(host, RPCHostCode, method, nil, in, out, hd...) } func DoString(method string, in interface{}, hd ...hbtp.Mp) (int, []byte, error) { host := fmt.Sprintf("%v", gocloud.CloudConf.Custom["sysHbtpHost"]) - return hbtp.DoRPCString(host, RPCHostCode, method, in, hd...) + return hbtp.DoRPCString(host, RPCHostCode, method, nil, in, hd...) } diff --git a/go.mod b/go.mod index 67a662d..f2dd662 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/gin-gonic/gin v1.7.1 github.com/go-sql-driver/mysql v1.5.0 - github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428064104-cf9d03801c90 + github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428065711-bd49ee675caf github.com/mgr9525/go-cloud v1.0.6-0.20210425153348-0292a9ccd8f8 github.com/mgr9525/go-ruisutil v1.0.8-0.20210317093428-f69295935056 github.com/qiniu/qmgo v0.9.2 diff --git a/go.sum b/go.sum index 9fca191..4d2d548 100644 --- a/go.sum +++ b/go.sum @@ -101,6 +101,8 @@ github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210426153421-56963f4775c github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210426153421-56963f4775c8/go.mod h1:U2OZ06VD1PHu3ZLZ8tuEHooaOZnoke/4ZKAZfL44bUQ= github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428064104-cf9d03801c90 h1:L9XcJd4EtXJlAOL4mTbFCOtA/I8wCUiGFvT4EV/ftkQ= github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428064104-cf9d03801c90/go.mod h1:U2OZ06VD1PHu3ZLZ8tuEHooaOZnoke/4ZKAZfL44bUQ= +github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428065711-bd49ee675caf h1:thhSwQ/vGaKwfjtfAQkzvIOalS1qdO744fycNGGAMyE= +github.com/mgr9525/HyperByte-Transfer-Protocol v0.0.0-20210428065711-bd49ee675caf/go.mod h1:U2OZ06VD1PHu3ZLZ8tuEHooaOZnoke/4ZKAZfL44bUQ= github.com/mgr9525/go-cloud v1.0.6-0.20210425153348-0292a9ccd8f8 h1:0OloknN3axz+XuBpc6OpTtVIlCE2GoUhvS3NP4tc354= github.com/mgr9525/go-cloud v1.0.6-0.20210425153348-0292a9ccd8f8/go.mod h1:VkCKgivVD2OX75Zwh+AO3zuJyxGCsuo0zdy+UXCYy9I= github.com/mgr9525/go-ruisutil v1.0.8-0.20210317093428-f69295935056 h1:JhXsFUB3mFWwiDc8c//E/6cUazJUX1lIiLgiM0asNjA=