提交 fbb320d3 authored 作者: zhanglibo's avatar zhanglibo

天猫sdk

上级 39d52ade
...@@ -6,12 +6,17 @@ import ( ...@@ -6,12 +6,17 @@ import (
"github.com/gogf/gf/util/gconv" "github.com/gogf/gf/util/gconv"
) )
type accountTm struct {
}
var Account = accountTm{}
//Regist 注册单个淘宝账号接口(同步) //Regist 注册单个淘宝账号接口(同步)
func (s *Config) Regist(ctx context.Context, thirdPartyUserId interface{}) (res *CommonRes, err error) { func (s *accountTm) Regist(ctx context.Context, AppID interface{}) (res *CommonRes, err error) {
method := "RegistAnonymousTbAccount" method := "RegistAnonymousTbAccount"
result, err := post(ctx, method, map[string]string{ result, err := post(ctx, method, map[string]string{
"BizUid": s.BizUid, "BizUid": server.BizUid,
"ThirdPartyUserId": gconv.String(thirdPartyUserId), "ThirdPartyUserId": gconv.String(AppID),
}) })
_ = json.Unmarshal([]byte(result), &res) _ = json.Unmarshal([]byte(result), &res)
return return
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论