休闲平台登录修改
This commit is contained in:
parent
1694d93397
commit
be3d093b0a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue