mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2026-01-16 15:50:44 +08:00
Compare commits
1 Commits
1acadd3cc1
...
d84cadac3c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d84cadac3c |
@ -1,4 +1,12 @@
|
|||||||
# QLScriptpublic
|
# QLScriptpublic
|
||||||
|
# JD 京东账密登录协议版本已发布 DOCKER一键部署 对接青龙 对接BOT
|
||||||
|
购买地址
|
||||||
|
http://shop.smallfawn.top/
|
||||||
|
|
||||||
|
# 定制脚本 20起步 看难度定价 支持一些滑块 设备指纹之类的
|
||||||
|
# 联系QQ 860562056 一天只接3单
|
||||||
|
# 排单网站目前还没做出来
|
||||||
|
|
||||||
|
|
||||||
本仓库魔改通知 smallfawnPushWhite白名单 smallfawnPushBlack黑名单 二选一
|
本仓库魔改通知 smallfawnPushWhite白名单 smallfawnPushBlack黑名单 二选一
|
||||||
``````
|
``````
|
||||||
|
|||||||
@ -22,7 +22,7 @@ const $ = new Env("安慕希小程序");
|
|||||||
let ckName = `anmuxi`;
|
let ckName = `anmuxi`;
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
|
|
||||||
|
|||||||
@ -557,7 +557,7 @@ function _0x2fbb6b(_0x5a60f2) {
|
|||||||
{
|
{
|
||||||
if (!this.notifyFlag) return;
|
if (!this.notifyFlag) return;
|
||||||
if (!this.notifyStr.length) return;
|
if (!this.notifyStr.length) return;
|
||||||
var _0x29aa8f = require("../sendNotify");
|
var _0x29aa8f = require("./sendNotify");
|
||||||
this.log("\n============== 推送 ==============");
|
this.log("\n============== 推送 ==============");
|
||||||
await _0x29aa8f.sendNotify(this.name, this.notifyStr.join("\n"));
|
await _0x29aa8f.sendNotify(this.name, this.notifyStr.join("\n"));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,9 +4,7 @@
|
|||||||
@Date: 2024.06.07 19:15
|
@Date: 2024.06.07 19:15
|
||||||
@Description: 测试
|
@Description: 测试
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
#Notice: 只适用于购买了luflytoken的 购买联系QQ860562056
|
#Notice:
|
||||||
变量luflytoken 填写luflytoken
|
|
||||||
变量wxbnmdwxid 填写wxbnmdwxid 多账号&分割或者换行
|
|
||||||
⚠️【免责声明】
|
⚠️【免责声明】
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
||||||
@ -19,17 +17,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("巴奴毛肚小程序");
|
const $ = new Env("巴奴毛肚小程序");
|
||||||
let ckName = `wxbnmdwxid`;
|
let ckName = `testA`;
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const crypto = require("crypto-js");
|
process.env[ckName] = "testA#testB&testC#testD"
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
const key = "bfc5e947cd84c7ced1ee48d28fb3e90f";
|
|
||||||
let luflytoken = process.env.luflytoken || ""
|
|
||||||
let wxcenter = 'http://w.smallfawn.top:5789'
|
|
||||||
let appid = 'wx71373698c47f9a9f'
|
|
||||||
class Public {
|
class Public {
|
||||||
async request(options) {
|
async request(options) {
|
||||||
return await axios.request(options);
|
return await axios.request(options);
|
||||||
@ -40,158 +35,17 @@ class Task extends Public {
|
|||||||
|
|
||||||
super();
|
super();
|
||||||
this.index = $.userIdx++
|
this.index = $.userIdx++
|
||||||
let user = env.split(strSplitor);
|
let user = env.split("#");
|
||||||
this.wxid = user[0];
|
this.name = user[0];
|
||||||
}
|
this.passwd = user[1];
|
||||||
getUUID(_0x4b4b65 = 16, _0x14813d = 36) {
|
|
||||||
const _0x181bd6 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");
|
|
||||||
const _0x295ca7 = [];
|
|
||||||
let _0x4713fe = 0;
|
|
||||||
if (_0x4b4b65) {
|
|
||||||
for (_0x4713fe = 0; _0x4713fe < _0x4b4b65; _0x4713fe++) {
|
|
||||||
_0x295ca7[_0x4713fe] = _0x181bd6[0 | Math.random() * _0x14813d];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
let _0x540406;
|
|
||||||
for (_0x295ca7[8] = _0x295ca7[13] = _0x295ca7[18] = _0x295ca7[23] = "-", _0x295ca7[14] = "4", _0x4713fe = 0; _0x4713fe < 36; _0x4713fe++) {
|
|
||||||
if (!_0x295ca7[_0x4713fe]) {
|
|
||||||
_0x540406 = 0 | 16 * Math.random();
|
|
||||||
_0x295ca7[_0x4713fe] = _0x181bd6[19 === _0x4713fe ? 3 & _0x540406 | 8 : _0x540406];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return _0x295ca7.join("");
|
|
||||||
}
|
|
||||||
getHeaders(options, _0x32d686, authorization) {
|
|
||||||
const keyOptions = {
|
|
||||||
app_key: "KlZ4LqOF",
|
|
||||||
app_secret: "HoBJTYXdwn"
|
|
||||||
};
|
|
||||||
const _0x3aaf0a = {
|
|
||||||
t: Math.floor(new Date().getTime() / 1000),
|
|
||||||
n: this.getUUID(),
|
|
||||||
...keyOptions
|
|
||||||
};
|
|
||||||
const _0x419328 = Object.values(_0x3aaf0a).join("");
|
|
||||||
|
|
||||||
const sign = this.stringToLowerCase(this.stringToLowerCase(_0x419328)).split("").reverse().join("");
|
|
||||||
const header = {
|
|
||||||
'Connection': 'keep-alive',
|
|
||||||
'content-type': 'application/json',
|
|
||||||
'uuid': options.uuid,
|
|
||||||
'platform_version_code': 'iOS 16.6',
|
|
||||||
'authorization': authorization, //
|
|
||||||
'tenancy_id': 'banu',
|
|
||||||
'app_key': 'KlZ4LqOF',
|
|
||||||
'code': 'f22b68d1c74c3a66aa7a1b199bcd4e20', //
|
|
||||||
'platform_version_name': 'iPhone 11<iPhone12,1>',
|
|
||||||
'platform_version_weapp': '8.0.50',
|
|
||||||
't': _0x3aaf0a.t,
|
|
||||||
'n': _0x3aaf0a.n,
|
|
||||||
'platform_version_sdk': '3.5.8',
|
|
||||||
'sign': sign,
|
|
||||||
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.50(0x1800323d) NetType/4G Language/zh_CN',
|
|
||||||
'Referer': 'https://servicewechat.com/wx71373698c47f9a9f/474/page-frame.html'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (_0x32d686) {
|
|
||||||
const _0xa2075e = new URLSearchParams({
|
|
||||||
...options,
|
|
||||||
enc_data: _0x32d686
|
|
||||||
}).toString();
|
|
||||||
const code = this.stringToLowerCase(this.stringToLowerCase(_0xa2075e)).split("").reverse().join("");
|
|
||||||
header.code = code;
|
|
||||||
}
|
|
||||||
return header;
|
|
||||||
}
|
|
||||||
stringToLowerCase(str) {
|
|
||||||
return crypto.MD5(str).toString().toLowerCase();
|
|
||||||
}
|
|
||||||
decrypt(_0x3c73c4) {
|
|
||||||
const _0x3218f0 = crypto.lib.WordArray.random(16).toString();
|
|
||||||
const _0x30b65e = JSON.stringify(_0x3c73c4);
|
|
||||||
const _0x429ee1 = crypto.AES.encrypt(_0x30b65e, crypto.enc.Utf8.parse(key), {
|
|
||||||
iv: crypto.enc.Utf8.parse(_0x3218f0),
|
|
||||||
mode: crypto.mode.CBC
|
|
||||||
}).toString();
|
|
||||||
return crypto.enc.Base64.stringify(crypto.enc.Utf8.parse(JSON.stringify({
|
|
||||||
iv: _0x3218f0,
|
|
||||||
encrypted_data: _0x429ee1
|
|
||||||
})));
|
|
||||||
}
|
|
||||||
async getcode() {
|
|
||||||
let options = {
|
|
||||||
url: `${wxcenter}/api/getcode`,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
method: 'POST',
|
|
||||||
data: { "luflyKey": "" + luflytoken, "wxid": "" + this.wxid, "appid": "" + appid }
|
|
||||||
}
|
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result.status) {
|
|
||||||
let code = result.data
|
|
||||||
$.log(`账号[${this.wxid}] 获取code成功[${code}]`);
|
|
||||||
let { member_id: memberId, openid: authorization } = await this.login(code)
|
|
||||||
const headerObj = {};
|
|
||||||
const data = {
|
|
||||||
member_id: memberId
|
|
||||||
};
|
|
||||||
try {
|
|
||||||
headerObj.uuid = this.getUUID();
|
|
||||||
const res = await axios.get("https://cloud.banu.cn/api/sign-in/days", {
|
|
||||||
params: data,
|
|
||||||
headers: this.getHeaders(headerObj, false, authorization)
|
|
||||||
});
|
|
||||||
if (res.data.data.is_sign_in) {
|
|
||||||
$.log(`账号[${this.wxid}] 重复签到`);
|
|
||||||
} else {
|
|
||||||
const decryptData = this.decrypt(data);
|
|
||||||
const res = await axios.post("https://cloud.banu.cn/api/sign-in", {
|
|
||||||
enc_data: decryptData
|
|
||||||
}, {
|
|
||||||
headers: this.getHeaders(headerObj, decryptData, authorization)
|
|
||||||
});
|
|
||||||
$.log("签到:" + res.data.message);
|
|
||||||
}
|
|
||||||
const info = await axios.get("https://cloud.banu.cn/api/member/statistic", {
|
|
||||||
params: data,
|
|
||||||
headers: this.getHeaders(headerObj, false, authorization)
|
|
||||||
});
|
|
||||||
const result = "\nMember_id:" + memberId + "\n用户名:" + info.data.data.name + "\n总积分:" + info.data.data.points;
|
|
||||||
} catch (err) {
|
|
||||||
|
|
||||||
console.log("签到失败:" + err + " | 签到时间:" + Date.now());
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
async login(code) {
|
|
||||||
let url = 'https://cloud.banu.cn/api/wx/weapp/auth';
|
|
||||||
let data = {
|
|
||||||
'app_id': 'wx71373698c47f9a9f',
|
|
||||||
'code': code
|
|
||||||
}
|
|
||||||
const headerObj = {};
|
|
||||||
headerObj.uuid = this.getUUID();
|
|
||||||
let headers = this.getHeaders(headerObj, false, "");
|
|
||||||
|
|
||||||
let { data: res } = await this.request({
|
|
||||||
url,
|
|
||||||
method: "POST",
|
|
||||||
headers,
|
|
||||||
data
|
|
||||||
})
|
|
||||||
return res.data;
|
|
||||||
}
|
|
||||||
async run() {
|
async run() {
|
||||||
|
|
||||||
await this.getcode()
|
|
||||||
|
|
||||||
|
|
||||||
|
console.log(this.index);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,37 +3,31 @@
|
|||||||
* Show:每天运行一次
|
* Show:每天运行一次
|
||||||
* @author:https://github.com/smallfawn/QLScriptPublic
|
* @author:https://github.com/smallfawn/QLScriptPublic
|
||||||
* 变量名:wx_midea
|
* 变量名:wx_midea
|
||||||
* 变量值:https://mvip.midea.cn/next/mucuserinfo/getmucuserinfo headers中的COOKIE 只写uid=xxxx;sukey=yyyy;#headers 中 ucAccessToken的值
|
* 变量值:https://mvip.midea.cn/next/mucuserinfo/getmucuserinfo headers中的COOKIE
|
||||||
* 具体示例 uid=xxxx;sukey=yyyy;#7895566asa 多账号&分开 或者换行
|
|
||||||
* scriptVersionNow = "0.0.1";
|
* scriptVersionNow = "0.0.1";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("微信小程序 - 美的会员");
|
const $ = new Env("微信小程序 - 美的会员");
|
||||||
const notify = $.isNode() ? require('../sendNotify') : '';
|
const notify = $.isNode() ? require('../sendNotify') : '';
|
||||||
let ckName = "wx_midea";
|
let ckName = "wx_midea";
|
||||||
let envSplitor = ["&", "\n"]; //多账号分隔符
|
let envSplitor = ["@", "\n"]; //多账号分隔符
|
||||||
let strSplitor = "#"; //多变量分隔符
|
let strSplitor = "&"; //多变量分隔符
|
||||||
let userIdx = 0;
|
let userIdx = 0;
|
||||||
let userList = [];
|
let userList = [];
|
||||||
let msg = "";
|
|
||||||
class UserInfo {
|
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.ckStatus = true;
|
this.ckStatus = true;
|
||||||
this.at = str.split(strSplitor)[1];
|
|
||||||
}
|
}
|
||||||
async main() {
|
async main() {
|
||||||
$.msg($.name, "", `开始第${this.index}个账号`)
|
$.msg($.name, "", `开始第${this.index}个账号`)
|
||||||
//await this.user_info();
|
//await this.user_info();
|
||||||
await $.wait(3000)
|
await $.wait(3000)
|
||||||
if (!this.ckStatus) {
|
|
||||||
$.msg($.name, "", `❌第${this.index}个账号失效`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
await this.signIn()
|
await this.signIn()
|
||||||
await this.signIn2()
|
if (this.ckStatus) {
|
||||||
|
//await this.signIn()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
async user_info() {
|
async user_info() {
|
||||||
try {
|
try {
|
||||||
@ -57,11 +51,9 @@ class UserInfo {
|
|||||||
//console.log(result);
|
//console.log(result);
|
||||||
if (result["errcode"] == 0) {
|
if (result["errcode"] == 0) {
|
||||||
console.log(`✅${options.fn}成功 [${result.data.userinfo.Mobile}] 当前积分[${result.data.userinfo.VipGrow}]🎉`);
|
console.log(`✅${options.fn}成功 [${result.data.userinfo.Mobile}] 当前积分[${result.data.userinfo.VipGrow}]🎉`);
|
||||||
msg += `✅${options.fn}成功 [${result.data.userinfo.Mobile}] 当前积分[${result.data.userinfo.VipGrow}]🎉\n`;
|
|
||||||
this.ckStatus = true;
|
this.ckStatus = true;
|
||||||
} else {
|
} else {
|
||||||
console.log(`❌${options.fn}失败`);
|
console.log(`❌${options.fn}失败`);
|
||||||
msg += `❌${options.fn}失败\n`;
|
|
||||||
this.ckStatus = false;
|
this.ckStatus = false;
|
||||||
console.log(JSON.stringify(result));
|
console.log(JSON.stringify(result));
|
||||||
}
|
}
|
||||||
@ -86,91 +78,20 @@ class UserInfo {
|
|||||||
//console.log(result);
|
//console.log(result);
|
||||||
if (result["errcode"] == 0) {
|
if (result["errcode"] == 0) {
|
||||||
console.log(`✅${options.fn}成功🎉`);
|
console.log(`✅${options.fn}成功🎉`);
|
||||||
msg += `✅${options.fn}成功🎉\n`+JSON.stringify(result);
|
|
||||||
} else {
|
} else {
|
||||||
console.log(`❌${options.fn}失败`);
|
console.log(`❌${options.fn}失败`);
|
||||||
msg += `❌${options.fn}失败\n`;
|
|
||||||
console.log(JSON.stringify(result));
|
console.log(JSON.stringify(result));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async signIn2() {
|
|
||||||
try {
|
|
||||||
let options = {
|
|
||||||
fn: "签到2",
|
|
||||||
method: "post",
|
|
||||||
url: `https://mvip.midea.cn/mscp_mscp/api/cms_api/activity-center-im-service/im-svr/im/game/page/sign`,
|
|
||||||
headers: {
|
|
||||||
'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/130.0.6723.103 Mobile Safari/537.36 XWEB/1300333 MMWEBSDK/20240404 MMWEBID/2585 MicroMessenger/8.0.49.2600(0x2800315A) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wx03925a39ca94b161',
|
|
||||||
'Accept': 'application/json, text/plain, */*',
|
|
||||||
'Accept-Encoding': 'gzip, deflate, br, zstd',
|
|
||||||
'Content-Type': 'application/json',
|
|
||||||
'sec-ch-ua-platform': '"Android"',
|
|
||||||
'sec-ch-ua': '"Chromium";v="130", "Android WebView";v="130", "Not?A_Brand";v="99"',
|
|
||||||
'ucAccessToken': '' + this.at,
|
|
||||||
'sec-ch-ua-mobile': '?1',
|
|
||||||
'intercept': '1',
|
|
||||||
'apiKey': '3660663068894a0d9fea574c2673f3c0',
|
|
||||||
'Origin': 'https://mvip.midea.cn',
|
|
||||||
'X-Requested-With': 'com.tencent.mm',
|
|
||||||
'Sec-Fetch-Site': 'same-origin',
|
|
||||||
'Sec-Fetch-Mode': 'cors',
|
|
||||||
'Sec-Fetch-Dest': 'empty',
|
|
||||||
'Referer': 'https://mvip.midea.cn/mscp_weixin/apps/h5-pro-wx-interaction-marketing/',
|
|
||||||
'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
|
|
||||||
},
|
|
||||||
body: JSON.stringify({
|
|
||||||
"headParams": {
|
|
||||||
"language": "CN",
|
|
||||||
"originSystem": "MCSP",
|
|
||||||
"timeZone": "",
|
|
||||||
"userCode": "",
|
|
||||||
"tenantCode": "",
|
|
||||||
"userKey": "TEST_",
|
|
||||||
"transactionId": ""
|
|
||||||
},
|
|
||||||
"pagination": null,
|
|
||||||
"restParams": {
|
|
||||||
"gameId": 22,
|
|
||||||
"actvId": "401671388248692763",
|
|
||||||
"rootCode": "MDHY",
|
|
||||||
"appCode": "MDHY_XCX",
|
|
||||||
"imUserId": "",
|
|
||||||
"uid": "",
|
|
||||||
"openId": "",
|
|
||||||
"unionId": ""
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
let result = await httpRequest(options);
|
|
||||||
//console.log(options);
|
|
||||||
//result = JSON.parse(result);
|
|
||||||
//console.log(result);
|
|
||||||
console.log(`✅${options.fn}成功🎉`);
|
|
||||||
msg += `✅${options.fn}成功🎉\n` + JSON.stringify(result);
|
|
||||||
console.log(JSON.stringify(result));
|
|
||||||
/*if (result["errcode"] == 0) {
|
|
||||||
console.log(`✅${options.fn}成功🎉`);
|
|
||||||
msg += `✅${options.fn}成功🎉\n`;
|
|
||||||
} else {
|
|
||||||
console.log(`❌${options.fn}失败`);
|
|
||||||
msg += `❌${options.fn}失败\n`;
|
|
||||||
console.log(JSON.stringify(result));
|
|
||||||
}*/
|
|
||||||
} catch (e) {
|
|
||||||
console.log(e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function start() {
|
async function start() {
|
||||||
const tasks = userList.map(user => user.main());
|
const tasks = userList.map(user => user.main());
|
||||||
await Promise.all(tasks);
|
await Promise.all(tasks);
|
||||||
notify.sendNotify($.name, msg);
|
|
||||||
/*let taskall = [];
|
/*let taskall = [];
|
||||||
for (let user of userList) {
|
for (let user of userList) {
|
||||||
if (user.ckStatus) {
|
if (user.ckStatus) {
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("微信小程序_骁龙骁友会");
|
const $ = new Env("微信小程序_骁龙骁友会");
|
||||||
const notify = $.isNode() ? require('../sendNotify') : '';
|
const notify = $.isNode() ? require('./sendNotify') : '';
|
||||||
let ckName = "wx_xlxyh";
|
let ckName = "wx_xlxyh";
|
||||||
let envSplitor = ["&", "\n"]; //多账号分隔符
|
let envSplitor = ["&", "\n"]; //多账号分隔符
|
||||||
let strSplitor = "#"; //多变量分隔符
|
let strSplitor = "#"; //多变量分隔符
|
||||||
|
|||||||
@ -1,11 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* cron 25 10 * * * wx_ZIWI+.js
|
* cron 25 10 * * * wx_ZIWI+.js
|
||||||
* 积分换 猫粮狗粮
|
* 积分换 猫粮狗粮
|
||||||
* 变量名wxziwiwxid 值为lufly登录授权的微信id 用于获取微信CODE 来刷新CK
|
* 变量名:ZIWIAUTH
|
||||||
* 变量名luflytoken 谨慎使用加密本 防止偷取TOKEN
|
* 变量值:https://ziwi.gzcrm.cn/json-rpc? Headers中的authorization 去掉Bearer 去掉Bearer 去掉Bearer
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* 多账号& 或新增变量
|
* 多账号& 或新增变量
|
||||||
* scriptVersionNow = "0.0.1";
|
* scriptVersionNow = "0.0.1";
|
||||||
*/
|
*/
|
||||||
@ -17,47 +14,16 @@ let envSplitor = ["&", "\n"]; //多账号分隔符
|
|||||||
let strSplitor = "#"; //多变量分隔符
|
let strSplitor = "#"; //多变量分隔符
|
||||||
let userIdx = 0;
|
let userIdx = 0;
|
||||||
let userList = [];
|
let userList = [];
|
||||||
let appid = 'wxb26a710e583b05dc'
|
let msg = ""
|
||||||
let wxcenter = 'http://w.smallfawn.top:5789'
|
|
||||||
class Task {
|
class Task {
|
||||||
constructor(str) {
|
constructor(str) {
|
||||||
this.index = ++userIdx;
|
this.index = ++userIdx;
|
||||||
this.wxid = str.split(strSplitor) //单账号多变量分隔符
|
this.ck = str.split(strSplitor)[0]; //单账号多变量分隔符
|
||||||
this.ckStatus = true;
|
this.ckStatus = true;
|
||||||
//定义在这里的headers会被get请求删掉content-type 而不会重置
|
//定义在这里的headers会被get请求删掉content-type 而不会重置
|
||||||
this.artList = []
|
this.artList = []
|
||||||
this.ck = ''
|
|
||||||
}
|
}
|
||||||
async main() {
|
async main() {
|
||||||
|
|
||||||
await this.getCode()
|
|
||||||
|
|
||||||
}
|
|
||||||
async getCode() {
|
|
||||||
let { body: result } = await $.httpRequest({
|
|
||||||
method: 'post', headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
}, url: wxcenter + '/api/getcode', body: JSON.stringify({ "luflyKey": process.env['luflytoken'], "wxid": "" + this.wxid, "appid": "wxb26a710e583b05dc" })
|
|
||||||
})
|
|
||||||
if (result) {
|
|
||||||
console.log(result)
|
|
||||||
if (result.status) {
|
|
||||||
let code = result.data
|
|
||||||
|
|
||||||
await this.getJwtByCode(code)
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
async getJwtByCode(code) {
|
|
||||||
|
|
||||||
let result = await this.taskRequest('post', 'https://ziwi.gzcrm.cn/json-rpc?__method=WechatMiniProgramCodeToSession', { "id": "", "jsonrpc": "2.0", "method": "WechatMiniProgramCodeToSession", "params": { "appId": "wxb26a710e583b05dc", "code": "" + code, "launchOptions": { "path": "pages/index/index", "query": {}, "referrerInfo": {}, "apiCategory": "default" } } })
|
|
||||||
if (result) {
|
|
||||||
if ('result' in result) {
|
|
||||||
if ('jwt' in result.result) {
|
|
||||||
console.log(`刷新CK成功`)
|
|
||||||
this.ck = result.result.jwt
|
|
||||||
await this.task_sign()
|
await this.task_sign()
|
||||||
await this.act_list();
|
await this.act_list();
|
||||||
if (this.artList.length > 0) {
|
if (this.artList.length > 0) {
|
||||||
@ -67,10 +33,6 @@ class Task {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
async taskRequest(method, url, body = "") {
|
async taskRequest(method, url, body = "") {
|
||||||
//
|
//
|
||||||
let headers = {
|
let headers = {
|
||||||
|
|||||||
@ -21,7 +21,7 @@ const $ = new Env("可口可乐吧");
|
|||||||
let ckName = `kekoukeleba`;
|
let ckName = `kekoukeleba`;
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@ const $ = new Env("杰士邦会员中心");
|
|||||||
let ckName = `jieshibang`;
|
let ckName = `jieshibang`;
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
|
|
||||||
|
|||||||
@ -352,7 +352,7 @@ function _0x14a79b(_0x4038d3, _0x4c648e) {
|
|||||||
let _0x3d3a83 = this.name + " 运行通知\n\n" + this.notifyStr;
|
let _0x3d3a83 = this.name + " 运行通知\n\n" + this.notifyStr;
|
||||||
if (_0x3065e9.isNode()) {
|
if (_0x3065e9.isNode()) {
|
||||||
{
|
{
|
||||||
var _0x3a245e = require("../sendNotify");
|
var _0x3a245e = require("./sendNotify");
|
||||||
console.log("\n============== 推送 ==============");
|
console.log("\n============== 推送 ==============");
|
||||||
await _0x3a245e.sendNotify(this.name, _0x3d3a83);
|
await _0x3a245e.sendNotify(this.name, _0x3d3a83);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -433,7 +433,7 @@ function Env(_0x145f6d, _0x2ad434) {
|
|||||||
if (!this.notifyStr) return;
|
if (!this.notifyStr) return;
|
||||||
let _0x49b71e = this.name + " 运行通知\n\n" + this.notifyStr;
|
let _0x49b71e = this.name + " 运行通知\n\n" + this.notifyStr;
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
var _0x15c32f = require("../sendNotify");
|
var _0x15c32f = require("./sendNotify");
|
||||||
console.log("\n============== 推送 ==============");
|
console.log("\n============== 推送 ==============");
|
||||||
await _0x15c32f.sendNotify(this.name, _0x49b71e);
|
await _0x15c32f.sendNotify(this.name, _0x49b71e);
|
||||||
} else this.msg(_0x49b71e);
|
} else this.msg(_0x49b71e);
|
||||||
|
|||||||
@ -387,7 +387,7 @@ function Env(_0x513ce9, _0x3f5b80) {
|
|||||||
if (!this.notifyStr) return;
|
if (!this.notifyStr) return;
|
||||||
let _0x44fa77 = this.name + " 运行通知\n\n" + this.notifyStr;
|
let _0x44fa77 = this.name + " 运行通知\n\n" + this.notifyStr;
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
var _0x2a2ac8 = require("../sendNotify");
|
var _0x2a2ac8 = require("./sendNotify");
|
||||||
console.log("\n============== 推送 ==============");
|
console.log("\n============== 推送 ==============");
|
||||||
await _0x2a2ac8.sendNotify(this.name, _0x44fa77);
|
await _0x2a2ac8.sendNotify(this.name, _0x44fa77);
|
||||||
} else this.msg(_0x44fa77);
|
} else this.msg(_0x44fa77);
|
||||||
|
|||||||
@ -1,14 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
@Author: sm
|
@ cron: 5 * * * *
|
||||||
@Date: 2024.06.07 19:15
|
@Author: smallfawn
|
||||||
@Description: 康师傅
|
|
||||||
cron: 12 12 * * *
|
|
||||||
------------------------------------------
|
|
||||||
#Notice: 只适用于购买了luflytoken的 购买联系QQ860562056
|
|
||||||
变量luflytoken 填写luflytoken
|
|
||||||
变量wxkangshifuwxid 填写wxkangshifuwxid 多账号&分割或者换行
|
|
||||||
|
|
||||||
|
------------------------------------------
|
||||||
|
#Notice: 每小时运行一次 ⚠️
|
||||||
|
CK 名字 kuaishou_speed_openbox
|
||||||
|
值: COOKIE#开宝箱sig3 多账号&连接
|
||||||
⚠️【免责声明】
|
⚠️【免责声明】
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
||||||
@ -20,16 +18,15 @@ cron: 12 12 * * *
|
|||||||
7、所有直接或间接使用、查看此脚本的人均应该仔细阅读此声明。本人保留随时更改或补充此声明的权利。一旦您使用或复制了此脚本,即视为您已接受此免责声明。
|
7、所有直接或间接使用、查看此脚本的人均应该仔细阅读此声明。本人保留随时更改或补充此声明的权利。一旦您使用或复制了此脚本,即视为您已接受此免责声明。
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("康师傅");
|
const $ = new Env("快手极速版开宝箱");
|
||||||
let ckName = `wxkangshifuwxid`;
|
let ckName = `kuaishou_speed_openbox`;
|
||||||
|
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
let luflytoken = process.env.luflytoken || ""
|
|
||||||
let wxcenter = 'http://w.smallfawn.top:5789'
|
|
||||||
let appid = 'wx54f3e6a00f7973a7'
|
|
||||||
class Public {
|
class Public {
|
||||||
async request(options) {
|
async request(options) {
|
||||||
return await axios.request(options);
|
return await axios.request(options);
|
||||||
@ -40,75 +37,56 @@ class Task extends Public {
|
|||||||
|
|
||||||
super();
|
super();
|
||||||
this.index = $.userIdx++
|
this.index = $.userIdx++
|
||||||
let user = env.split(strSplitor);
|
let user = env.split("#");
|
||||||
this.wxid = user[0];
|
this.cookkie = user[0];
|
||||||
this.passwd = user[1];
|
this.sig3_openbox = user[1]
|
||||||
|
console.log()
|
||||||
}
|
}
|
||||||
|
|
||||||
async getcode() {
|
async openbox() {
|
||||||
|
let data = JSON.stringify({});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$.log(`快手开宝箱 每小时运行一次`)
|
||||||
|
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
url: `${wxcenter}/api/getcode`,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { "luflyKey": "" + luflytoken, "wxid": "" + this.wxid, "appid": "" + appid }
|
url: `https://nebula.kuaishou.com/rest/wd/encourage/unionTask/treasureBox/report?__NS_sig3=${this.sig3_openbox}&sigCatVer=1`,
|
||||||
}
|
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result.status) {
|
|
||||||
let code = result.data
|
|
||||||
$.log(`账号[${this.index}]【${this.name}】 获取code成功[${code}]`);
|
|
||||||
await this.login(code)
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
async login(code) {
|
|
||||||
let options = {
|
|
||||||
url: `https://nclub.gdshcm.com/pro/whale-member/api/login/login`,
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
method: 'POST',
|
|
||||||
data: { "code": "" + code, "inviterId": "", "inviterType": 1, "inviterMatchUserId": "", "spUrl": null }
|
|
||||||
}
|
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result.code == 0) {
|
|
||||||
let token = result.data.token
|
|
||||||
$.log(`账号[${this.index}]【${this.name}】 登录成功`);
|
|
||||||
await this.signIn(token)
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
async signIn(token) {
|
|
||||||
let options = {
|
|
||||||
url: ` https://club.biqr.cn/api/signIn/integralSignIn`,
|
|
||||||
headers: {
|
headers: {
|
||||||
|
'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/90.0.4430.226 KsWebView/1.8.90.770 (rel;r) Mobile Safari/537.36 Yoda/3.2.9-rc6 ksNebula/12.11.40.9331 OS_PRO_BIT/64 MAX_PHY_MEM/5724 KDT/PHONE AZPREFIX/az3 ICFO/0 StatusHT/29 TitleHT/44 NetType/WIFI ISLP/0 ISDM/0 ISLB/0 locale/zh-cn DPS/4.036 DPP/13 SHP/2068 SWP/1080 SD/2.75 CT/0 ISLM/0',
|
||||||
|
'Accept-Encoding': 'gzip, deflate',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'token': "" + token
|
'Origin': 'https://nebula.kuaishou.com',
|
||||||
|
'X-Requested-With': 'com.kuaishou.nebula',
|
||||||
|
'Sec-Fetch-Site': 'same-origin',
|
||||||
|
'Sec-Fetch-Mode': 'cors',
|
||||||
|
'Sec-Fetch-Dest': 'empty',
|
||||||
|
'Referer': 'https://nebula.kuaishou.com/nebula/task/earning?layoutType=4&hyId=nebula_earning_ug_cdn&source=bottom_guide_second',
|
||||||
|
'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
|
||||||
|
'Cookie': '' + this.cookkie
|
||||||
},
|
},
|
||||||
method: 'POST',
|
data: data
|
||||||
data: {}
|
};
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
|
let { data: res } = await this.request(options);
|
||||||
|
$.log(res);
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result.code == 0) {
|
|
||||||
$.log(`账号[${this.index}]【${this.name}】 签到成功`);
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
async run() {
|
async run() {
|
||||||
await this.getcode()
|
|
||||||
|
|
||||||
|
await this.openbox()
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2,13 +2,11 @@
|
|||||||
------------------------------------------
|
------------------------------------------
|
||||||
@Author: sm
|
@Author: sm
|
||||||
@Date: 2024.06.07 19:15
|
@Date: 2024.06.07 19:15
|
||||||
@Description: 海底捞
|
@Description: 测试
|
||||||
cron: 12 12 * * *
|
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
#Notice:
|
#Notice:
|
||||||
https://superapp-public.kiwa-tech.com/api/gateway/login/center/login/wechatLogin 接口的请求参数openId#uid
|
CK 名字 kuaishou_speed
|
||||||
填写到变量名为haidilao的值中 多账号&或换行
|
值: COOKIE#签到sig3#打卡sig3 多账号&连接
|
||||||
|
|
||||||
⚠️【免责声明】
|
⚠️【免责声明】
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
1、此脚本仅用于学习研究,不保证其合法性、准确性、有效性,请根据情况自行判断,本人对此不承担任何保证责任。
|
||||||
@ -20,15 +18,15 @@ https://superapp-public.kiwa-tech.com/api/gateway/login/center/login/wechatLogin
|
|||||||
7、所有直接或间接使用、查看此脚本的人均应该仔细阅读此声明。本人保留随时更改或补充此声明的权利。一旦您使用或复制了此脚本,即视为您已接受此免责声明。
|
7、所有直接或间接使用、查看此脚本的人均应该仔细阅读此声明。本人保留随时更改或补充此声明的权利。一旦您使用或复制了此脚本,即视为您已接受此免责声明。
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const $ = new Env("海底捞");
|
const $ = new Env("快手极速版签到打卡");
|
||||||
let ckName = `haidilao`;
|
let ckName = `kuaishou_speed`;
|
||||||
|
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
|
|
||||||
let appid = 'wx54f3e6a00f7973a7'
|
|
||||||
class Public {
|
class Public {
|
||||||
async request(options) {
|
async request(options) {
|
||||||
return await axios.request(options);
|
return await axios.request(options);
|
||||||
@ -39,101 +37,82 @@ class Task extends Public {
|
|||||||
|
|
||||||
super();
|
super();
|
||||||
this.index = $.userIdx++
|
this.index = $.userIdx++
|
||||||
let user = env.split(strSplitor);
|
let user = env.split("#");
|
||||||
this.openId = user[0];
|
this.cookkie = user[0];
|
||||||
this.uid = user[1];
|
this.sig3_signIn = user[1]
|
||||||
|
this.sig3_signInMoney = user[2]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async signInMoney() {
|
||||||
async login() {
|
$.log(`快手打卡`)
|
||||||
|
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
url: "https://superapp-public.kiwa-tech.com/api/gateway/login/center/login/wechatLogin",
|
method: 'GET',
|
||||||
|
url: `https://nebula.kuaishou.com/rest/wd/encourage/unionTask/signIn/report?__NS_sig3=${this.sig3_signInMoney}&sigCatVer=1`,
|
||||||
headers: {
|
headers: {
|
||||||
"_haidilao_app_token": "",
|
'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/90.0.4430.226 KsWebView/1.8.90.770 (rel;r) Mobile Safari/537.36 Yoda/3.2.9-rc6 ksNebula/12.11.40.9331 OS_PRO_BIT/64 MAX_PHY_MEM/5724 KDT/PHONE AZPREFIX/az3 ICFO/0 StatusHT/29 TitleHT/44 NetType/WIFI ISLP/0 ISDM/0 ISLB/0 locale/zh-cn DPS/4.036 DPP/13 SHP/2068 SWP/1080 SD/2.75 CT/0 ISLM/0',
|
||||||
"accept": "*/*",
|
'Accept-Encoding': 'gzip, deflate',
|
||||||
"accept-language": "zh-CN,zh;q=0.9",
|
'content-type': 'application/x-www-form-urlencoded;charset=UTF-8',
|
||||||
"appid": "15",
|
'X-Requested-With': 'com.kuaishou.nebula',
|
||||||
"appname": "HDLMember",
|
'Sec-Fetch-Site': 'same-origin',
|
||||||
"appversion": "3.240.0",
|
'Sec-Fetch-Mode': 'cors',
|
||||||
"content-type": "application/json",
|
'Sec-Fetch-Dest': 'empty',
|
||||||
"platformname": "wechat",
|
'Referer': 'https://nebula.kuaishou.com/nebula/task/earning?layoutType=4&hyId=nebula_earning_ug_cdn&source=bottom_guide_second',
|
||||||
"sec-fetch-dest": "empty",
|
'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
|
||||||
"sec-fetch-mode": "cors",
|
'Cookie': '' + this.cookkie
|
||||||
"sec-fetch-site": "cross-site",
|
|
||||||
"smdeviceid": "",
|
|
||||||
"xweb_xhr": "1"
|
|
||||||
},
|
|
||||||
method: 'POST',
|
|
||||||
data: {
|
|
||||||
"type": 1,
|
|
||||||
"country": "CN",
|
|
||||||
"codeType": 1,
|
|
||||||
"business": "登录",
|
|
||||||
"terminal": "会员小程序",
|
|
||||||
"openId": "" + this.openId,
|
|
||||||
"uid": "" + this.uid
|
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
let { data: result } = await this.request(options);
|
try {
|
||||||
if (result.code == 100000) {
|
let { data: res } = await this.request(options);
|
||||||
this.token = result.data.token
|
$.log(res);
|
||||||
this.name = result.data.nickName
|
|
||||||
$.log(`账号[${this.index}]【${this.name}】 登录成功`);
|
|
||||||
await this.signIn()
|
|
||||||
await this.info()
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
async signIn() {
|
async signIn() {
|
||||||
|
$.log(`外部签到`)
|
||||||
|
let data = JSON.stringify({
|
||||||
|
"reportCount": 1,
|
||||||
|
"subBizId": 6426,
|
||||||
|
"taskId": 26021
|
||||||
|
});
|
||||||
|
|
||||||
let options = {
|
let options = {
|
||||||
url: 'https://superapp-public.kiwa-tech.com/activity/wxapp/signin/signin',
|
method: 'POST',
|
||||||
|
url: 'https://encourage.kuaishou.com/rest/wd/zt/task/report?__NS_sig3=' + this.sig3_signIn,
|
||||||
headers: {
|
headers: {
|
||||||
'_haidilao_app_token': this.token,
|
'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/90.0.4430.226 KsWebView/1.8.90.770 (rel;r) Mobile Safari/537.36 Yoda/3.2.9-rc6 ksNebula/12.11.40.9331 OS_PRO_BIT/64 MAX_PHY_MEM/5724 KDT/PHONE AZPREFIX/az3 ICFO/0 StatusHT/29 TitleHT/44 NetType/WIFI ISLP/0 ISDM/0 ISLB/0 locale/zh-cn DPS/4.036 DPP/13 SHP/2068 SWP/1080 SD/2.75 CT/0 ISLM/1',
|
||||||
|
'Accept-Encoding': 'gzip, deflate',
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'ktrace-str': '3|My40NTgzNzM3MTc4NDU3Mzc4LjM5NTMzODY2LjE3Mzk4NTY2Mjk2MzkuMTAwNQ==|My40NTgzNzM3MTc4NDU3Mzc4LjY2MjczNDcxLjE3Mzk4NTY2Mjk2MzkuMTAwNA==|0|usergrowth-activity-huge-sign-in|webservice|true|src:Js,seqn:950,rsi:c0c8c381-56b7-40b5-a47a-acd7ec6242dc,path:/huge-sign-in/home,rpi:c198403627',
|
||||||
|
'Origin': 'https://encourage.kuaishou.com',
|
||||||
|
'X-Requested-With': 'com.kuaishou.nebula',
|
||||||
|
'Sec-Fetch-Site': 'same-origin',
|
||||||
|
'Sec-Fetch-Mode': 'cors',
|
||||||
|
'Sec-Fetch-Dest': 'empty',
|
||||||
|
'Referer': 'https://encourage.kuaishou.com/huge-sign-in/home?layoutType=4&source=task&encourageTaskValidityTrack=eyJhY3Rpdml0eV9pZCI6MjAyNDMsInJlc291cmNlX2lkIjoiZWFyblBhZ2VfdGFza0xpc3RfMyIsImV4dF9wYXJhbXMiOnsiaXNTZXJ2ZXJSZWNvcmRDbGlja0FjdGlvbiI6dHJ1ZX19&encourageEventTracking=W3siZW5jb3VyYWdlX3Rhc2tfaWQiOjIwMjQzLCJlbmNvdXJhZ2VfcmVzb3VyY2VfaWQiOiJlYXJuUGFnZV90YXNrTGlzdF8zIiwiZXZlbnRUcmFja2luZ0xvZ0luZm8iOlt7ImRlbGl2ZXJPcmRlcklkIjoiNzEwIiwibWF0ZXJpYWxLZXkiOiJUQVNLX0xJU1RfMjAyNDNfSFVHRV9TSUdOX0lOIiwiZXZlbnRUcmFja2luZ1Rhc2tJZCI6MjAyNDMsInJlc291cmNlSWQiOiJlYXJuUGFnZV90YXNrTGlzdF8zIiwiZXh0UGFyYW1zIjp7ImlzU2VydmVyUmVjb3JkQ2xpY2tBY3Rpb24iOnRydWV9fV19XQ',
|
||||||
|
'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
|
||||||
|
'Cookie': '' + this.cookkie
|
||||||
|
|
||||||
},
|
},
|
||||||
method: 'POST',
|
data: data
|
||||||
data: { "signinSource": "MiniApp" }
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
let { data: res } = await this.request(options);
|
||||||
|
$.log(res);
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result['success']) {
|
|
||||||
$.log(`账号[${this.index}]【${this.name}】 签到成功`);
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
async info() {
|
|
||||||
let options = {
|
|
||||||
url: 'https://superapp-public.kiwa-tech.com/activity/wxapp/signin/queryFragment',
|
|
||||||
headers: {
|
|
||||||
'_haidilao_app_token': this.token,
|
|
||||||
|
|
||||||
},
|
|
||||||
method: 'POST',
|
|
||||||
data: {}
|
|
||||||
}
|
|
||||||
let { data: result } = await this.request(options);
|
|
||||||
if (result['success']) {
|
|
||||||
$.log(`账号[${this.index}] 剩余[${result.data.total}]本期碎片将于${result['data']['expireDate']}过期 `)
|
|
||||||
} else {
|
|
||||||
console.log(result);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
async run() {
|
async run() {
|
||||||
await this.login()
|
|
||||||
|
|
||||||
|
await this.signIn()
|
||||||
|
await this.signInMoney()
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user