fengniao ceshi
This commit is contained in:
@@ -7,8 +7,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
TokenURL = "https://open-anubis.ele.me/anubis-webapi/openapi/token" // 正式环境
|
||||
ApiURL = "https://open-anubis.ele.me/anubis-webapi/v3/invoke" // 正式环境
|
||||
TokenURL = "https://open-anubis.ele.me/anubis-webapi/openapi/token" // 正式环境
|
||||
ApiURL = "https://open-anubis.ele.me/anubis-webapi/v3/invoke" // 正式环境
|
||||
RefreshTokenUrl = "https://open-anubis.ele.me/anubis-webapi/openapi/refreshToken" // 正式环境刷新token
|
||||
//TokenURL = "https://exam-anubis.ele.me/anubis-webapi/openapi/token" // 沙箱环境
|
||||
//ApiURL = "https://exam-anubis.ele.me/anubis-webapi/v3/invoke" // 沙箱环境
|
||||
RequestPost = "POST"
|
||||
@@ -17,18 +18,19 @@ const (
|
||||
|
||||
// 注册请求api
|
||||
type API struct {
|
||||
grantType string `json:"grant_type"`
|
||||
code string `json:"code"`
|
||||
appID string `json:"app_id"`
|
||||
merchantId string `json:"merchant_id"`
|
||||
signature string `json:"signature"`
|
||||
timestamp int64 `json:"timestamp"`
|
||||
accessToken string `json:"access_token"`
|
||||
appSecret string `json:"app_secret"`
|
||||
version string `json:"version"`
|
||||
locker sync.RWMutex
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
grantType string `json:"grant_type"`
|
||||
code string `json:"code"`
|
||||
appID string `json:"app_id"`
|
||||
merchantId string `json:"merchant_id"`
|
||||
signature string `json:"signature"`
|
||||
timestamp int64 `json:"timestamp"`
|
||||
accessToken string `json:"access_token"`
|
||||
refreshToken string `json:"refresh_token"`
|
||||
appSecret string `json:"app_secret"`
|
||||
version string `json:"version"`
|
||||
locker sync.RWMutex
|
||||
client *http.Client
|
||||
config *platformapi.APIConfig
|
||||
}
|
||||
|
||||
// 请求基础结构体
|
||||
|
||||
Reference in New Issue
Block a user