mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 15:25:10 +08:00
change
This commit is contained in:
66
alyp.js
66
alyp.js
@@ -37,33 +37,33 @@ class UserInfo {
|
||||
if (tgLogFlag) {
|
||||
try {
|
||||
this.mopenid = str.split("##")[0]
|
||||
this.chatId = str.split("##")[1]
|
||||
this.chatId = str.split("##")[1]
|
||||
this.ck = str
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
}
|
||||
async refresh() {
|
||||
async refresh() {
|
||||
let name = "更新token";
|
||||
let options = {
|
||||
method: "post",
|
||||
url: `https://auth.aliyundrive.com/v2/account/token`,
|
||||
headers: {
|
||||
"Host": "auth.aliyundrive.com",
|
||||
"accept": "application/json",
|
||||
"content-type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
"Host": "auth.aliyundrive.com",
|
||||
"accept": "application/json",
|
||||
"content-type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
body: `{"grant_type":"refresh_token","refresh_token":"${this.ck}"}`
|
||||
};
|
||||
// console.log(options);
|
||||
// console.log(options);
|
||||
let res = await httpRequest(options);
|
||||
// console.log(res);
|
||||
// console.log(res);
|
||||
if (res.status == 'enabled') {
|
||||
this.token = res.access_token
|
||||
this.nick_name= res.nick_name
|
||||
// this.cusLog(`账号 ${this.index} ${name}: 更新token `)
|
||||
await this.sign()
|
||||
this.token = res.access_token
|
||||
this.nick_name = res.nick_name
|
||||
// this.cusLog(`账号 ${this.index} ${name}: 更新token `)
|
||||
await this.sign()
|
||||
} else this.cusLog(`账号[${this.nick_name}] ${name} 失败 ❌ 了呢`), console.log(res);
|
||||
}
|
||||
async sign() {
|
||||
@@ -72,42 +72,42 @@ class UserInfo {
|
||||
method: "post",
|
||||
url: `https://member.aliyundrive.com/v1/activity/sign_in_list`,
|
||||
headers: {
|
||||
"Host": "member.aliyundrive.com",
|
||||
"authorization": `Bearer ${this.token}`,
|
||||
"accept": "application/json",
|
||||
"Content-Type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
"Host": "member.aliyundrive.com",
|
||||
"authorization": `Bearer ${this.token}`,
|
||||
"accept": "application/json",
|
||||
"Content-Type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
body: `{"isReward":false}`
|
||||
};
|
||||
// console.log(options);
|
||||
// console.log(options);
|
||||
let res = await httpRequest(options);
|
||||
// console.log(res);
|
||||
// console.log(res);
|
||||
if (res.success == true) {
|
||||
this.id = res.result.signInCount
|
||||
var o = this.id - 1
|
||||
this.cusLog(`账号 [${this.nick_name} ] \n ${name}: 成功 \n ${res.result.signInLogs[o].calendarChinese} \n ${res.result.signInLogs[o].reward.notice} `)
|
||||
await this.reward()
|
||||
this.id = res.result.signInCount
|
||||
var o = this.id - 1
|
||||
this.cusLog(`账号 [${this.nick_name} ] \n ${name}: 成功 \n ${res.result.signInLogs[o].calendarChinese} \n ${res.result.signInLogs[o].reward.notice} `)
|
||||
await this.reward()
|
||||
} else this.cusLog(`账号[${this.index}] ${name} 失败 ❌ 了呢`), console.log(res);
|
||||
}
|
||||
async reward() {
|
||||
async reward() {
|
||||
let name = "领取";
|
||||
let options = {
|
||||
method: "post",
|
||||
url: `https://member.aliyundrive.com/v1/activity/sign_in_reward`,
|
||||
headers: {
|
||||
"Host": "member.aliyundrive.com",
|
||||
"authorization": `Bearer ${this.token}`,
|
||||
"accept": "application/json",
|
||||
"Content-Type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
"Host": "member.aliyundrive.com",
|
||||
"authorization": `Bearer ${this.token}`,
|
||||
"accept": "application/json",
|
||||
"Content-Type": "application/json; charset\u003dUTF-8",
|
||||
},
|
||||
body: `{"signInDay":${this.id}}`
|
||||
};
|
||||
// console.log(options);
|
||||
// console.log(options);
|
||||
let res = await httpRequest(options);
|
||||
// console.log(res);
|
||||
// console.log(res);
|
||||
if (res.success == true) {
|
||||
|
||||
this.cusLog(` ${res.result.description} `)
|
||||
this.cusLog(` ${res.result.description} `)
|
||||
|
||||
} else this.cusLog(`账号[${this.index}] ${name} 失败 ❌ 了呢`), console.log(res);
|
||||
}
|
||||
@@ -157,7 +157,7 @@ class UserInfo {
|
||||
// 入口
|
||||
!(async () => {
|
||||
const notify = require("./sendNotify");
|
||||
// $.doubleLog(await $.yiyan());
|
||||
// $.doubleLog(await $.yiyan());
|
||||
let users = await getUsers(CK_NAME, async (index, element) => {
|
||||
let userInfo = new UserInfo(index, element);
|
||||
return userInfo;
|
||||
|
||||
266
jetta.js
266
jetta.js
@@ -36,12 +36,12 @@ let result = '';
|
||||
status = (status = $.getval("JETTA_tokenstatus") || "1") > 1 ? `${status}` : ""; // 账号扩展字符
|
||||
let JETTA_tokenArr = [];
|
||||
let JETTA_token = $.isNode()
|
||||
? process.env.JETTA_token
|
||||
? process.env.JETTA_token
|
||||
: ""
|
||||
: $.getdata("JETTA_token")
|
||||
? $.getdata("JETTA_token")
|
||||
: "";
|
||||
? process.env.JETTA_token
|
||||
: ""
|
||||
: $.getdata("JETTA_token")
|
||||
? $.getdata("JETTA_token")
|
||||
: "";
|
||||
let JETTA_tokens = "";
|
||||
let tz = $.getval("JETTA_tokentz") || "1";
|
||||
let host = `https://yuasg.com`;
|
||||
@@ -49,68 +49,68 @@ $.message = "";
|
||||
|
||||
//开始运行
|
||||
!(async () => {
|
||||
if (typeof $request !== "undefined") {
|
||||
jdck()
|
||||
} else {
|
||||
if (!$.isNode()) {
|
||||
JETTA_tokenArr.push($.getdata("JETTA_token"));
|
||||
let count = $.getval("JETTA_tokencount") || "1";
|
||||
for (let i = 2; i <= count; i++) {
|
||||
JETTA_tokenArr.push($.getdata(`JETTA_token${i}`));
|
||||
}
|
||||
if (!JETTA_tokenArr[0]) {
|
||||
$.log(`\n【傻吊提示】:你没有填写ck跑个嘚`);
|
||||
$.message += `\n【傻吊提示】:你没有填写ck跑个嘚`;
|
||||
} else {
|
||||
console.log(
|
||||
`-------------共${JETTA_tokenArr.length}个账号-------------\n`
|
||||
);
|
||||
}
|
||||
for (let i = 0; i < JETTA_tokenArr.length; i++) {
|
||||
if (JETTA_tokenArr[i]) {
|
||||
JETTA_token = JETTA_tokenArr[i];
|
||||
$.index = i + 1;
|
||||
console.log(`\n开始【捷达 账户 ${$.index}】`);
|
||||
|
||||
await hbxxh();
|
||||
await getUserInfo();
|
||||
}
|
||||
}
|
||||
if (typeof $request !== "undefined") {
|
||||
jdck()
|
||||
} else {
|
||||
if (process.env.JETTA_token && process.env.JETTA_token.indexOf("@") > -1) {
|
||||
JETTA_tokenArr = process.env.JETTA_token.split("@");
|
||||
console.log(`您选择的是用"@"隔开\n`);
|
||||
} else {
|
||||
JETTA_tokens = [process.env.JETTA_token];
|
||||
}
|
||||
Object.keys(JETTA_tokens).forEach((item) => {
|
||||
if (JETTA_tokens[item]) {
|
||||
JETTA_tokenArr.push(JETTA_tokens[item]);
|
||||
if (!$.isNode()) {
|
||||
JETTA_tokenArr.push($.getdata("JETTA_token"));
|
||||
let count = $.getval("JETTA_tokencount") || "1";
|
||||
for (let i = 2; i <= count; i++) {
|
||||
JETTA_tokenArr.push($.getdata(`JETTA_token${i}`));
|
||||
}
|
||||
if (!JETTA_tokenArr[0]) {
|
||||
$.log(`\n【傻吊提示】:你没有填写ck跑个嘚`);
|
||||
$.message += `\n【傻吊提示】:你没有填写ck跑个嘚`;
|
||||
} else {
|
||||
console.log(
|
||||
`-------------共${JETTA_tokenArr.length}个账号-------------\n`
|
||||
);
|
||||
}
|
||||
for (let i = 0; i < JETTA_tokenArr.length; i++) {
|
||||
if (JETTA_tokenArr[i]) {
|
||||
JETTA_token = JETTA_tokenArr[i];
|
||||
$.index = i + 1;
|
||||
console.log(`\n开始【捷达 账户 ${$.index}】`);
|
||||
|
||||
await hbxxh();
|
||||
await getUserInfo();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (process.env.JETTA_token && process.env.JETTA_token.indexOf("@") > -1) {
|
||||
JETTA_tokenArr = process.env.JETTA_token.split("@");
|
||||
console.log(`您选择的是用"@"隔开\n`);
|
||||
} else {
|
||||
JETTA_tokens = [process.env.JETTA_token];
|
||||
}
|
||||
Object.keys(JETTA_tokens).forEach((item) => {
|
||||
if (JETTA_tokens[item]) {
|
||||
JETTA_tokenArr.push(JETTA_tokens[item]);
|
||||
}
|
||||
});
|
||||
|
||||
if (!JETTA_tokenArr[0]) {
|
||||
$.log(`\n【傻吊提示】:你没有填写ck跑个嘚`);
|
||||
$.message += `\n【傻吊提示】:你没有填写ck跑个嘚`;
|
||||
} else {
|
||||
console.log(
|
||||
`-------------共${JETTA_tokenArr.length}个账号-------------\n`
|
||||
);
|
||||
}
|
||||
for (let k = 0; k < JETTA_tokenArr.length; k++) {
|
||||
JETTA_token = JETTA_tokenArr[k];
|
||||
$.index = k + 1;
|
||||
console.log(`\n开始【捷达 账户 ${$.index}】`);
|
||||
|
||||
await hbxxh();
|
||||
await getUserInfo();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!JETTA_tokenArr[0]) {
|
||||
$.log(`\n【傻吊提示】:你没有填写ck跑个嘚`);
|
||||
$.message += `\n【傻吊提示】:你没有填写ck跑个嘚`;
|
||||
} else {
|
||||
console.log(
|
||||
`-------------共${JETTA_tokenArr.length}个账号-------------\n`
|
||||
);
|
||||
}
|
||||
for (let k = 0; k < JETTA_tokenArr.length; k++) {
|
||||
JETTA_token = JETTA_tokenArr[k];
|
||||
$.index = k + 1;
|
||||
console.log(`\n开始【捷达 账户 ${$.index}】`);
|
||||
|
||||
await hbxxh();
|
||||
await getUserInfo();
|
||||
}
|
||||
}
|
||||
}
|
||||
message(); //通知
|
||||
message(); //通知
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
|
||||
function jdck() {
|
||||
if ($request.url.indexOf("getUserInfo") > -1) {
|
||||
@@ -127,103 +127,103 @@ function jdck() {
|
||||
}
|
||||
//红包小银行
|
||||
function hbxxh(timeout = 0) {
|
||||
return new Promise((resolve) => {
|
||||
return new Promise((resolve) => {
|
||||
|
||||
|
||||
let url = {
|
||||
url: `https://service-yy.jconnect.faw-vw.com/redpackbank/prize/getPrize`,
|
||||
headers: {
|
||||
"Host": "service-yy.jconnect.faw-vw.com",
|
||||
"pragma": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
"accept": "application/json, text/plain, */*",
|
||||
"origin": "https://serviceui-yy-ui.jconnect.faw-vw.com",
|
||||
"sec-fetch-dest": "empty",
|
||||
"token": `${JETTA_token}`,
|
||||
},
|
||||
let url = {
|
||||
url: `https://service-yy.jconnect.faw-vw.com/redpackbank/prize/getPrize`,
|
||||
headers: {
|
||||
"Host": "service-yy.jconnect.faw-vw.com",
|
||||
"pragma": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
"accept": "application/json, text/plain, */*",
|
||||
"origin": "https://serviceui-yy-ui.jconnect.faw-vw.com",
|
||||
"sec-fetch-dest": "empty",
|
||||
"token": `${JETTA_token}`,
|
||||
},
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
$.get(
|
||||
url,
|
||||
async (err, resp, data) => {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
$.get(
|
||||
url,
|
||||
async (err, resp, data) => {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
|
||||
if (data.status == 'SUCCEED') {
|
||||
if (data.status == 'SUCCEED') {
|
||||
|
||||
console.log("\n【获得】: " + data.data.todayPrize);
|
||||
console.log("\n【获得】: " + data.data.todayPrize);
|
||||
|
||||
|
||||
$.message += "\n【获得】: " + data.data.data.data.todayPrize+'元'
|
||||
$.message += "\n【获得】: " + data.data.data.data.todayPrize + '元'
|
||||
|
||||
|
||||
} else {
|
||||
console.log('\n【 ' + data.errorMessage + '】')
|
||||
} else {
|
||||
console.log('\n【 ' + data.errorMessage + '】')
|
||||
|
||||
$.message +='\n红包小银行【 '+ data.errorMessage + '】'
|
||||
$.message += '\n红包小银行【 ' + data.errorMessage + '】'
|
||||
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
},
|
||||
timeout
|
||||
);
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
},
|
||||
timeout
|
||||
);
|
||||
});
|
||||
}
|
||||
function getUserInfo(timeout = 0) {
|
||||
return new Promise((resolve) => {
|
||||
return new Promise((resolve) => {
|
||||
|
||||
|
||||
let url = {
|
||||
url: `https://service-yy.jconnect.faw-vw.com/redpackbank/user/getUserInfo`,
|
||||
headers: {
|
||||
"Host": "service-yy.jconnect.faw-vw.com",
|
||||
"pragma": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
"accept": "application/json, text/plain, */*",
|
||||
"origin": "https://serviceui-yy-ui.jconnect.faw-vw.com",
|
||||
"sec-fetch-dest": "empty",
|
||||
"token": `${JETTA_token}`,
|
||||
},
|
||||
let url = {
|
||||
url: `https://service-yy.jconnect.faw-vw.com/redpackbank/user/getUserInfo`,
|
||||
headers: {
|
||||
"Host": "service-yy.jconnect.faw-vw.com",
|
||||
"pragma": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
"accept": "application/json, text/plain, */*",
|
||||
"origin": "https://serviceui-yy-ui.jconnect.faw-vw.com",
|
||||
"sec-fetch-dest": "empty",
|
||||
"token": `${JETTA_token}`,
|
||||
},
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
$.get(
|
||||
url,
|
||||
async (err, resp, data) => {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
$.get(
|
||||
url,
|
||||
async (err, resp, data) => {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
|
||||
if (data.status == 'SUCCEED') {
|
||||
console.log("\n【余额】: " + data.data.detail.allPrize);
|
||||
if (data.status == 'SUCCEED') {
|
||||
console.log("\n【余额】: " + data.data.detail.allPrize);
|
||||
|
||||
|
||||
$.message +="\n【余额】: " + data.data.detail.allPrize+'元'
|
||||
$.message += "\n【余额】: " + data.data.detail.allPrize + '元'
|
||||
|
||||
|
||||
} else {
|
||||
} else {
|
||||
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
},
|
||||
timeout
|
||||
);
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
} finally {
|
||||
resolve();
|
||||
}
|
||||
},
|
||||
timeout
|
||||
);
|
||||
});
|
||||
}
|
||||
//通知
|
||||
async function message() {
|
||||
if (tz == 1) {
|
||||
$.msg($.name, "", $.message);
|
||||
}
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify($.name, $.message);
|
||||
}
|
||||
if (tz == 1) {
|
||||
$.msg($.name, "", $.message);
|
||||
}
|
||||
if ($.isNode()) {
|
||||
await notify.sendNotify($.name, $.message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
38
ylnn.js
38
ylnn.js
@@ -30,7 +30,7 @@ let msg = ''
|
||||
async function main(userInfo) {
|
||||
|
||||
await userInfo.sign()
|
||||
await userInfo.point()
|
||||
await userInfo.point()
|
||||
|
||||
|
||||
|
||||
@@ -55,48 +55,48 @@ class UserInfo {
|
||||
|
||||
|
||||
|
||||
async sign() {
|
||||
async sign() {
|
||||
let name = "签到";
|
||||
let options = {
|
||||
method: "post",
|
||||
url: `https://msmarket.msx.digitalyili.com/gateway/api/member/daily/sign`,
|
||||
headers: {
|
||||
"Host": "msmarket.msx.digitalyili.com",
|
||||
"charset": "utf-8",
|
||||
"content-type": "application/json",
|
||||
"access-token": `${this.ck}`
|
||||
},
|
||||
headers: {
|
||||
"Host": "msmarket.msx.digitalyili.com",
|
||||
"charset": "utf-8",
|
||||
"content-type": "application/json",
|
||||
"access-token": `${this.ck}`
|
||||
},
|
||||
body: `{}`
|
||||
};
|
||||
// console.log(options);
|
||||
// console.log(options);
|
||||
|
||||
let res = await httpRequest(options);
|
||||
// console.log(res);
|
||||
if (res.status == true) {
|
||||
this.cusLog(`账号 ${this.index} : 签到成功`)
|
||||
this.cusLog(`账号 ${this.index} : 签到成功`)
|
||||
} else if (res.status == false) {
|
||||
this.cusLog(`账号 ${this.index} : ck过期 请重新抓取 access-token`)
|
||||
} else this.cusLog(`账号[${this.index}] ${name} 失败 ❌ 了呢`), console.log(res);
|
||||
}
|
||||
async point() {
|
||||
async point() {
|
||||
let name = "个人信息";
|
||||
let options = {
|
||||
method: "get",
|
||||
url: `https://msmarket.msx.digitalyili.com/gateway/api/member/point`,
|
||||
headers: {
|
||||
"Host": "msmarket.msx.digitalyili.com",
|
||||
"charset": "utf-8",
|
||||
"content-type": "application/json",
|
||||
"access-token": `${this.ck}`
|
||||
}
|
||||
headers: {
|
||||
"Host": "msmarket.msx.digitalyili.com",
|
||||
"charset": "utf-8",
|
||||
"content-type": "application/json",
|
||||
"access-token": `${this.ck}`
|
||||
}
|
||||
|
||||
};
|
||||
// console.log(options);
|
||||
// console.log(options);
|
||||
|
||||
let res = await httpRequest(options);
|
||||
// console.log(res);
|
||||
if (res.status == true) {
|
||||
this.cusLog(`账号 ${this.index} 总积分 : ${res.data} `)
|
||||
this.cusLog(`账号 ${this.index} 总积分 : ${res.data} `)
|
||||
} else if (res.status == false) {
|
||||
this.cusLog(`账号 ${this.index} : ck过期 请重新抓取 access-token`)
|
||||
} else this.cusLog(`账号[${this.index}] ${name} 失败 ❌ 了呢`), console.log(res);
|
||||
|
||||
Reference in New Issue
Block a user