Update wx_hapi.js

This commit is contained in:
smallfawn
2023-09-27 17:59:45 +08:00
committed by GitHub
parent d0d6b158be
commit 5394846840

View File

@@ -3,7 +3,7 @@
* cron 20 17 * * * wx_hapi.js * cron 20 17 * * * wx_hapi.js
* Show: * Show:
* 变量名:wx_hapi_cookie * 变量名:wx_hapi_cookie
* 变量值:bg-hardcore.ab-inbev.cn, Headers 中的 openid的值 * 变量值:bg-hardcore.ab-inbev.cn, Headers 中的 openid的值&sign的值&timestamp的值 3个值缺一不可
* scriptVersionNow = "0.0.2"; * scriptVersionNow = "0.0.2";
*/ */
@@ -20,6 +20,8 @@ class UserInfo {
constructor(str) { constructor(str) {
this.index = ++$.userIdx; this.index = ++$.userIdx;
this.ck = str.split(strSplitor)[0]; //单账号多变量分隔符 this.ck = str.split(strSplitor)[0]; //单账号多变量分隔符
this.sign = str.split(strSplitor)[1]
this.timestamp = str.split(strSplitor)[2]
this.ckStatus = true; this.ckStatus = true;
} }
async main() { async main() {
@@ -32,11 +34,11 @@ class UserInfo {
"Content-Length": "35", "Content-Length": "35",
"charset": "utf-8", "charset": "utf-8",
"openid": this.ck, "openid": this.ck,
"sign": "4e32617a3321d037ac79ba7ea0e07d7d", "sign": this.sign,
"User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/111.0.5563.116 Mobile Safari/537.36 XWEB/5261 MMWEBSDK/20230405 MMWEBID/2585 MicroMessenger/8.0.35.2360(0x2800235D) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 MiniProgramEnv/android", "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/111.0.5563.116 Mobile Safari/537.36 XWEB/5261 MMWEBSDK/20230405 MMWEBID/2585 MicroMessenger/8.0.35.2360(0x2800235D) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 MiniProgramEnv/android",
"content-type": "application/x-www-form-urlencoded", "content-type": "application/x-www-form-urlencoded",
"Accept-Encoding": "gzip,compress,br,deflate", "Accept-Encoding": "gzip,compress,br,deflate",
"timestamp": "1695806229", "timestamp": this.timestamp,
"Referer": "https://servicewechat.com/wx3235eff0af1e42d8/199/page-frame.html", "Referer": "https://servicewechat.com/wx3235eff0af1e42d8/199/page-frame.html",
} }