提交 2433164c 编写于 作者: 雪洛's avatar 雪洛

fix: timestamp must be number type

上级 5fb0de72
......@@ -39,7 +39,7 @@ module.exports = async function (params) {
const signContent = {
jsapi_ticket: ticket,
noncestr: getNonceStr(),
timestamp: Math.floor(Date.now() / 1000) + '',
timestamp: Math.floor(Date.now() / 1000),
url: url.split('#')[0]
}
const signStr = Object.keys(signContent).sort().reduce(function (str, key) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册