From be3d093b0a47267c44fc3eb6dca49d8bdd896133 Mon Sep 17 00:00:00 2001 From: "DESKTOP-45ANQ2C\\unis" <121212121@qq.com> Date: Tue, 10 Dec 2024 17:49:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=91=E9=97=B2=E5=B9=B3=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mgrsrv/api/webapi_worldsrv.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mgrsrv/api/webapi_worldsrv.go b/mgrsrv/api/webapi_worldsrv.go index 390557a..cc232e2 100644 --- a/mgrsrv/api/webapi_worldsrv.go +++ b/mgrsrv/api/webapi_worldsrv.go @@ -30,6 +30,7 @@ import ( const ( WEBAPI_TRANSACTE_EVENT int = iota WEBAPI_TRANSACTE_RESPONSE + PLATFORMAPPKEY = "PLATFORMAPPKEYtest123" ) var WebApiStats = new(sync.Map) @@ -158,7 +159,7 @@ func PlatformSrvApi(rw http.ResponseWriter, req *http.Request) { params := make(map[string]string) json.Unmarshal(data, ¶ms) - realSign := webapi.MD5Params(params, webapi.Config.GameApiKey, "sign") + realSign := webapi.MD5Params(params, PLATFORMAPPKEY, "sign") sign := params["sign"] if realSign != sign {