mirror of
https://github.com/hex-ci/smzdm_script.git
synced 2026-02-03 02:53:17 +08:00
新增关注品牌任务
This commit is contained in:
2
bot.js
2
bot.js
@@ -47,7 +47,7 @@ const signFormData = (data) => {
|
||||
};
|
||||
|
||||
const keys = Object.keys(newData).filter(key => newData[key] !== '').sort();
|
||||
const signData = keys.map(key => `${key}=${newData[key]}`).join('&');
|
||||
const signData = keys.map(key => `${key}=${String(newData[key]).replace(/\s+/, '')}`).join('&');
|
||||
const sign = crypto.createHash('md5').update(`${signData}&key=${SIGN_KEY}`).digest('hex').toUpperCase();
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user