diff --git a/platformapi/fnpsapi/fnps_v3.go b/platformapi/fnpsapi/fnps_v3.go index ee83bbcf..881ecbef 100644 --- a/platformapi/fnpsapi/fnps_v3.go +++ b/platformapi/fnpsapi/fnps_v3.go @@ -7,13 +7,13 @@ 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" - RequestGet = "GET" + //TokenURL = "https://exam-anubis.ele.me/anubis-webapi/openapi/token" // 沙箱环境 + //ApiURL = "https://exam-anubis.ele.me/anubis-webapi/v3/invoke" // 沙箱环境 + RequestPost = "POST" + RequestGet = "GET" ) // 注册请求api diff --git a/platformapi/fnpsapi/fnpsapi.go b/platformapi/fnpsapi/fnpsapi.go index b328a4ca..857a4942 100644 --- a/platformapi/fnpsapi/fnpsapi.go +++ b/platformapi/fnpsapi/fnpsapi.go @@ -17,14 +17,6 @@ import ( "git.rosy.net.cn/baseapi/utils" ) -const ( - sigKey = "signature" - - TestURL = "https://exam-anubis.ele.me/anubis-webapi" - URL = "https://open-anubis.ele.me/anubis-webapi" - tokenAction = "get_access_token" -) - func (a *API) SetToken(token string) { a.locker.Lock() defer a.locker.Unlock()