1
This commit is contained in:
parent
d93c2ba089
commit
2b5788e7ae
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"gamesapi_url": "https://game2006sapi-test.kingsome.cn",
|
"gamesapi_url": "https://game2006sapi-test.kingsome.cn",
|
||||||
"redirect_url": "https://game2006api-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,
|
"max_concurrent_num": 10,
|
||||||
"request_over_time": 30
|
"request_over_time": 30
|
||||||
}
|
}
|
||||||
|
@ -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 {
|
func (this *sApiForward) Sign(params []*[]string, nonce string, timeStamp int64, postData string) string {
|
||||||
sign := ""
|
|
||||||
signData := ""
|
signData := ""
|
||||||
q5.Sort(params, func (a *[]string, b *[]string) bool {
|
q5.Sort(params, func (a *[]string, b *[]string) bool {
|
||||||
return (*a)[0] < (*b)[0]
|
return (*a)[0] < (*b)[0]
|
||||||
@ -110,6 +109,6 @@ func (this *sApiForward) Sign(params []*[]string, nonce string, timeStamp int64,
|
|||||||
for _, v := range params {
|
for _, v := range params {
|
||||||
signData += (*v)[0] + "=" + (*v)[1] + "&"
|
signData += (*v)[0] + "=" + (*v)[1] + "&"
|
||||||
}
|
}
|
||||||
signData += q5.Md5Str(nonce + q5.ToString(timeStamp) + postData + mt.Table.Config.GetRedirectSecretKey())
|
signData += nonce + q5.ToString(timeStamp) + postData + mt.Table.Config.GetRedirectSecretKey()
|
||||||
return sign
|
return q5.Md5Str(signData)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user