This commit is contained in:
aozhiwei 2024-07-25 09:44:02 +08:00
parent d93c2ba089
commit 2b5788e7ae
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{
"gamesapi_url": "https://game2006sapi-test.kingsome.cn",
"redirect_url": "https://game2006api-test.kingsome.cn",
"redirect_secret_key": "",
"redirect_secret_key": "~kCu8jYS)rJ5Ay_pZS_rT#&jOl)Qo0m)",
"max_concurrent_num": 10,
"request_over_time": 30
}

View File

@ -102,7 +102,6 @@ func (this *sApiForward) getOrCreate(c *SApiForwardLockCache, accountId string)
}
func (this *sApiForward) Sign(params []*[]string, nonce string, timeStamp int64, postData string) string {
sign := ""
signData := ""
q5.Sort(params, func (a *[]string, b *[]string) bool {
return (*a)[0] < (*b)[0]
@ -110,6 +109,6 @@ func (this *sApiForward) Sign(params []*[]string, nonce string, timeStamp int64,
for _, v := range params {
signData += (*v)[0] + "=" + (*v)[1] + "&"
}
signData += q5.Md5Str(nonce + q5.ToString(timeStamp) + postData + mt.Table.Config.GetRedirectSecretKey())
return sign
signData += nonce + q5.ToString(timeStamp) + postData + mt.Table.Config.GetRedirectSecretKey()
return q5.Md5Str(signData)
}