This commit is contained in:
邹宗楠
2022-10-14 15:40:21 +08:00
parent 3aafc81c64
commit d7db9fe464
14 changed files with 231 additions and 21 deletions

View File

@@ -9,13 +9,6 @@ import (
"time"
)
const (
CallbackSuccessCode = 0
CallbackSuccess = "success"
CallbackFailCode = 1000
CallbackFail = "fail"
)
type API struct {
appKey string
appSecret string
@@ -72,7 +65,7 @@ func (a *API) CreateToken(code string) (*doudian_sdk.CreateTokenData, error) {
doudian_sdk.GlobalConfig.AppKey = a.appKey
doudian_sdk.GlobalConfig.AppSecret = a.appSecret
buildParam := &doudian_sdk.BuildAccessTokenParam{
Code: code, // 定死还是自动获取
Code: code,
ShopId: 0,
Config: nil,
}