- 超频重视逻辑改为按幂增长

+ jdapi.NewPageOnly
This commit is contained in:
gazebo
2019-08-15 08:54:02 +08:00
parent 2580d1a8c3
commit b338b87a02
2 changed files with 28 additions and 11 deletions

View File

@@ -144,6 +144,13 @@ func New(token, appKey, appSecret string, config ...*platformapi.APIConfig) *API
}
}
func NewPageOnly(cookie string, config ...*platformapi.APIConfig) *API {
api := New("", "", "", config...)
api.SetCookie(accessStorePageCookieName, cookie)
api.SetCookie(accessStorePageCookieName2, cookie)
return api
}
func (a *API) AccessAPI2(apiStr string, jdParams map[string]interface{}, traceInfo string) (retVal map[string]interface{}, err error) {
params := make(map[string]interface{})
params["v"] = "1.0"