const timestamp = new Date().getTime()
const secret="你的秘钥"
const stringToSign = timestamp + "n" + secret
const sign = crypto.createHmac('sha256', secret).update(stringToSign).digest("base64")
// 最终得到的签名sign
const sign_urlencode = encodeURIComponent(sign)

03-05 21:53