ITHOME 鐵人賽 :: 主題競賽組觀戰區
目前這份資料是用年久失修的爬蟲在跑的,新版網址如下:
https://ithome-2021-ironman.s3.ap-northeast-1.amazonaws.com/index.html
ITHOME 鐵人賽 :: 主題競賽組觀戰區
目前這份資料是用年久失修的爬蟲在跑的,新版網址如下:
https://ithome-2021-ironman.s3.ap-northeast-1.amazonaws.com/index.html
| const generateCheckMacValue = (data, hashKey, hashIV) => { | |
| const keys = Object.keys(data).sort((l, r) => l > r); | |
| let checkValue = ''; | |
| for(const key of keys){ checkValue += `${key}=${data[key]}&` } | |
| checkValue = `HashKey=${hashKey}&${checkValue}HashIV=${hashIV}`; // There is already an & in the end of checkValue | |
| checkValue = encodeURIComponent(checkValue).toLowerCase(); | |
| checkValue = checkValue.replace(/%20/g, '+') | |
| .replace(/%2d/g, '-') | |
| .replace(/%5f/g, '_') | |
| .replace(/%2e/g, '.') |