Commit 5eca6a69 by liwk

修改sign

1 parent 4cf6dae7
......@@ -4,6 +4,9 @@ const sign = params => {
const secret = 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
const keys = Object.keys(params).sort()
var str = []
for (const key in params) {
if (typeof params[key] === 'object') params[key] = JSON.stringify(params[key])
}
keys.forEach(e => {
str.push(e + params[e])
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!