From 53fe82817fb3a3e0573737e8bf350160211a12cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 31 Mar 2022 11:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=AD=A3=E5=BC=8F=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/fnpsapi/fnps_v3.go | 12 ++++++------ platformapi/fnpsapi/fnpsapi.go | 8 -------- 2 files changed, 6 insertions(+), 14 deletions(-) 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()