5-1 需要自行开卡 , 然后就有签到了 , 自行决定跑不跑吧

This commit is contained in:
yml2213
2022-05-01 14:40:36 +08:00
parent 905d2d7424
commit c7dc899b16
17 changed files with 532 additions and 168 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ mimt= pepcoin.pepsico.com.cn
============= 重写 =============
https://pepcoin.pepsico.com.cn/api/wxapp/ url script-request-body https://raw.githubusercontent.com/yml2213/javascript/master/bsly/bsly.js
还是不会的请百度或者群里求助:QQ群:1001401060 tg:https://t.me/yml_tg
还是不会的请百度或者群里求助:QQ群:884234287 tg:https://t.me/yml_tg
*/
+6 -6
View File
@@ -22,7 +22,7 @@ dfttboxbd:变量中的xxxx是你的body包数据,,可以搜索关键词 open_tr
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
// https://shoutu2.dftoutiao.com/invite/open_treasure_box
@@ -34,7 +34,7 @@ let body = process.env.dfttboxbd;
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -46,8 +46,8 @@ async function yml() {
await wyy();
await qd();
//每日网抑云
function wyy(timeout = 3*1000) {
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
@@ -66,8 +66,8 @@ async function yml() {
})
}
// https://shoutu2.dftoutiao.com/invite/open_treasure_box
// 开宝箱任务
// https://shoutu2.dftoutiao.com/invite/open_treasure_box
// 开宝箱任务
function qd(timeout = 0) {
return new Promise((resolve) => {
let url = {
+7 -7
View File
@@ -22,7 +22,7 @@ dfttqdbd:变量中的xxxx是你的body包数据,,可以从 关键词 nswer_quest
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
@@ -34,7 +34,7 @@ let dfttdtbd = process.env.dfttdtbd;
//开始运行
!(async () => {
console.log(`答题测试中,不可用也别找我;交流群:1001401060 by-yml`);
console.log(`答题测试中,不可用也别找我;交流群:884234287 by-yml`);
await yml()
})()
@@ -49,8 +49,8 @@ async function yml() {
await dt2();
//每日网抑云
function wyy(timeout = 3*1000) {
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
@@ -70,10 +70,10 @@ async function yml() {
}
// https://answer-question.dftoutiao.com/cheese_superman/answer_question_new/double_bouns
// https://answer-question.dftoutiao.com/cheese_superman/answer_question_new/add_user_bonus
// https://answer-question.dftoutiao.com/cheese_superman/answer_question_new/double_bouns
// https://answer-question.dftoutiao.com/cheese_superman/answer_question_new/add_user_bonus
// 答题闯关任务
// 答题闯关任务
function dt1(timeout = 0) {
return new Promise((resolve) => {
let url = {
+3 -3
View File
@@ -21,7 +21,7 @@ dfttbxbd:变量中的xxxx是你大转盘的变量,可以从 关键词 get_zhua
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
@@ -34,7 +34,7 @@ let body = process.env.dfttbxbd;
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -52,7 +52,7 @@ async function yml() {
}
//每日网抑云
function wyy(timeout = 3*1000) {
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
+6 -6
View File
@@ -22,7 +22,7 @@ dfttkspbd:变量中的xxxx是你的body包数据,可以从 关键词 send_gold/b
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
@@ -34,7 +34,7 @@ let body = process.env.dfttkspbd;
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -47,8 +47,8 @@ async function yml() {
await wyy();
await ksp();
//每日网抑云
function wyy(timeout = 3*1000) {
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
@@ -68,8 +68,8 @@ async function yml() {
}
// https://adv-invedio.dftoutiao.com/adv/send_gold/bonus
// 看视频任务
// https://adv-invedio.dftoutiao.com/adv/send_gold/bonus
// 看视频任务
function ksp(timeout = 0) {
return new Promise((resolve) => {
let url = {
+7 -7
View File
@@ -24,7 +24,7 @@ dfttqdbd:变量中的xxxx是你的body包数据,,可以从 关键词 new_user_si
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:https://t.me/yml_tg
不会的请百度或者群里求助:QQ群:884234287 tg:https://t.me/yml_tg
*/
@@ -36,7 +36,7 @@ let body = process.env.dfttqdbd;
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -50,8 +50,8 @@ async function yml() {
await wyy();
await qd();
//每日网抑云
function wyy(timeout = 3*1000) {
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
@@ -71,9 +71,9 @@ async function yml() {
}
// https://sign.dftoutiao.com/sign/news_take_s
// https://sign2.dftoutiao.com/sign/signv4/new_user_sign
// 签到任务
// https://sign.dftoutiao.com/sign/news_take_s
// https://sign2.dftoutiao.com/sign/signv4/new_user_sign
// 签到任务
function qd(timeout = 0) {
return new Promise((resolve) => {
let url = {
+6 -6
View File
@@ -22,7 +22,7 @@ dfttboxbd:变量中的xxxx是你的body包数据,,可以搜索关键词 timesaw
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
// https://timesaward.dftoutiao.com/timesaward/timesaward/get_award
@@ -34,7 +34,7 @@ let body = process.env.dfttsdjlbd;
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -46,8 +46,8 @@ async function yml() {
await wyy();
await dzp();
//每日网抑云
function wyy(timeout = 3*1000) {
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
url: `https://keai.icu/apiwyy/api`
@@ -67,8 +67,8 @@ async function yml() {
}
// https://timesaward.dftoutiao.com/timesaward/timesaward/get_award
// 时段奖励
// https://timesaward.dftoutiao.com/timesaward/timesaward/get_award
// 时段奖励
function dzp(timeout = 0) {
return new Promise((resolve) => {
let url = {
+28 -28
View File
@@ -21,7 +21,7 @@ dfttwzbd:变量中的xxxx是你的body包数据,,可以从 关键词 read_news
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:科技玩家@我即可
不会的请百度或者群里求助:QQ群:884234287 tg:科技玩家@我即可
*/
// https://yuedu4.dftoutiao.com/index/Yuedutimer/read_news
@@ -35,7 +35,7 @@ let num = 30; //阅读数量(默认30)
//==================================================这里自定义阅读文章数量==================================================
//开始运行
!(async () => {
console.log(`交流群:1001401060 by-yml`);
console.log(`交流群:884234287 by-yml`);
await yml()
})()
@@ -55,7 +55,7 @@ async function yml() {
}
//每日网抑云
//每日网抑云
function wyy(timeout = 3 * 1000) {
return new Promise((resolve) => {
let url = {
@@ -76,8 +76,8 @@ async function yml() {
}
// https://yuedu4.dftoutiao.com/index/Yuedutimer/read_news
// 阅读文章任务
// https://yuedu4.dftoutiao.com/index/Yuedutimer/read_news
// 阅读文章任务
function wz(timeout = 0) {
return new Promise((resolve) => {
let url = {
@@ -125,7 +125,7 @@ function Env(t, e) {
}
send(t, e = "GET") {
t = "string" == typeof t ? {url: t} : t;
t = "string" == typeof t ? { url: t } : t;
let s = this.get;
return "POST" === e && (s = this.post), new Promise((e, i) => {
s.call(this, t, (t, s, r) => {
@@ -204,7 +204,7 @@ function Env(t, e) {
getScript(t) {
return new Promise(e => {
this.get({url: t}, (t, s, i) => e(i))
this.get({ url: t }, (t, s, i) => e(i))
})
}
@@ -216,8 +216,8 @@ function Env(t, e) {
r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r;
const [o, h] = i.split("@"), n = {
url: `http://${h}/v1/scripting/evaluate`,
body: {script_text: t, mock_type: "cron", timeout: r},
headers: {"X-Key": o, Accept: "*/*"}
body: { script_text: t, mock_type: "cron", timeout: r },
headers: { "X-Key": o, Accept: "*/*" }
};
this.post(n, (t, e, i) => s(i))
}).catch(t => this.logErr(t))
@@ -305,11 +305,11 @@ function Env(t, e) {
get(t, e = (() => {
})) {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient.get(t, (t, s, i) => {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let s = require("iconv-lite");
this.initGotEnv(t), this.got(t).on("redirect", (t, e) => {
@@ -322,10 +322,10 @@ function Env(t, e) {
this.logErr(t)
}
}).then(t => {
const {statusCode: i, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: i, statusCode: r, headers: o, rawBody: h}, s.decode(h, this.encoding))
const { statusCode: i, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: i, statusCode: r, headers: o, rawBody: h }, s.decode(h, this.encoding))
}, t => {
const {message: i, response: r} = t;
const { message: i, response: r } = t;
e(i, r, r && s.decode(r.rawBody, this.encoding))
})
}
@@ -334,20 +334,20 @@ function Env(t, e) {
post(t, e = (() => {
})) {
const s = t.method ? t.method.toLocaleLowerCase() : "post";
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient[s](t, (t, s, i) => {
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient[s](t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let i = require("iconv-lite");
this.initGotEnv(t);
const {url: r, ...o} = t;
const { url: r, ...o } = t;
this.got[s](r, o).then(t => {
const {statusCode: s, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: s, statusCode: r, headers: o, rawBody: h}, i.decode(h, this.encoding))
const { statusCode: s, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: s, statusCode: r, headers: o, rawBody: h }, i.decode(h, this.encoding))
}, t => {
const {message: s, response: r} = t;
const { message: s, response: r } = t;
e(s, r, r && i.decode(r.rawBody, this.encoding))
})
}
@@ -372,19 +372,19 @@ function Env(t, e) {
msg(e = t, s = "", i = "", r) {
const o = t => {
if (!t) return t;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0;
if ("object" == typeof t) {
if (this.isLoon()) {
let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"];
return {openUrl: e, mediaUrl: s}
return { openUrl: e, mediaUrl: s }
}
if (this.isQuanX()) {
let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl;
return {"open-url": e, "media-url": s}
return { "open-url": e, "media-url": s }
}
if (this.isSurge()) {
let e = t.url || t.openUrl || t["open-url"];
return {url: e}
return { url: e }
}
}
};
+30 -30
View File
@@ -21,13 +21,13 @@ export yml_lmz_data='username=手机号&password=密码'
手机号 密码 填入自己的数据就行
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:https://t.me/yml_tg
不会的请百度或者群里求助:QQ群:884234287 tg:https://t.me/yml_tg
*/
const $ = new Env('狸猫赚');
const notify = $.isNode() ? require('./sendNotify') : '';
let body='';
let web_yml_lmz_data='';
let body = '';
let web_yml_lmz_data = '';
!(async () => {
if ($.isNode()) {
@@ -38,7 +38,7 @@ let web_yml_lmz_data='';
}
if (process.env.yml_lmz_data && process.env.yml_lmz_data.indexOf('@') > -1) {
web_yml_lmz_data = process.env.yml_lmz_data.split('@');
}else {
} else {
web_yml_lmz_data = process.env.yml_lmz_data.split();
}
}
@@ -125,7 +125,7 @@ function lmzdl(timeout = 0) {
if (result.type == "success") {
$.log(`\n【🎉🎉🎉 恭喜您鸭 🎉🎉🎉】登录状态: ${result.message} ✅ `)
// await $.wait(3 * 1000)
}else {
} else {
$.log(`\n【🎉 恭喜个屁 🎉】登录状态:${result.message} `)
}
} catch (e) {
@@ -164,7 +164,7 @@ function lmzqd(timeout = 0) {
url: 'https://www.limaozhan.com/index.php/home/account/index',
headers: {
'X-Requested-With': 'XMLHttpRequest',
'Cookie':cookie,
'Cookie': cookie,
},
body: '',
@@ -185,7 +185,7 @@ function lmzqd(timeout = 0) {
// await $.wait(3 * 1000)
} else if (result.type == "error") {
$.log(`\n【🎉 恭喜个屁 🎉】签到状态: ${result.message} `)
}else {
} else {
$.log(`\n【🎉 恭喜个屁 🎉】执行签到:失败 ❌ 了呢,原因未知! `)
}
} catch (e) {
@@ -212,7 +212,7 @@ function Env(t, e) {
}
send(t, e = "GET") {
t = "string" == typeof t ? {url: t} : t;
t = "string" == typeof t ? { url: t } : t;
let s = this.get;
return "POST" === e && (s = this.post), new Promise((e, i) => {
s.call(this, t, (t, s, r) => {
@@ -291,7 +291,7 @@ function Env(t, e) {
getScript(t) {
return new Promise(e => {
this.get({url: t}, (t, s, i) => e(i))
this.get({ url: t }, (t, s, i) => e(i))
})
}
@@ -303,8 +303,8 @@ function Env(t, e) {
r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r;
const [o, h] = i.split("@"), n = {
url: `http://${h}/v1/scripting/evaluate`,
body: {script_text: t, mock_type: "cron", timeout: r},
headers: {"X-Key": o, Accept: "*/*"}
body: { script_text: t, mock_type: "cron", timeout: r },
headers: { "X-Key": o, Accept: "*/*" }
};
this.post(n, (t, e, i) => s(i))
}).catch(t => this.logErr(t))
@@ -392,11 +392,11 @@ function Env(t, e) {
get(t, e = (() => {
})) {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient.get(t, (t, s, i) => {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let s = require("iconv-lite");
this.initGotEnv(t), this.got(t).on("redirect", (t, e) => {
@@ -409,10 +409,10 @@ function Env(t, e) {
this.logErr(t)
}
}).then(t => {
const {statusCode: i, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: i, statusCode: r, headers: o, rawBody: h}, s.decode(h, this.encoding))
const { statusCode: i, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: i, statusCode: r, headers: o, rawBody: h }, s.decode(h, this.encoding))
}, t => {
const {message: i, response: r} = t;
const { message: i, response: r } = t;
e(i, r, r && s.decode(r.rawBody, this.encoding))
})
}
@@ -421,20 +421,20 @@ function Env(t, e) {
post(t, e = (() => {
})) {
const s = t.method ? t.method.toLocaleLowerCase() : "post";
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient[s](t, (t, s, i) => {
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient[s](t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let i = require("iconv-lite");
this.initGotEnv(t);
const {url: r, ...o} = t;
const { url: r, ...o } = t;
this.got[s](r, o).then(t => {
const {statusCode: s, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: s, statusCode: r, headers: o, rawBody: h}, i.decode(h, this.encoding))
const { statusCode: s, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: s, statusCode: r, headers: o, rawBody: h }, i.decode(h, this.encoding))
}, t => {
const {message: s, response: r} = t;
const { message: s, response: r } = t;
e(s, r, r && i.decode(r.rawBody, this.encoding))
})
}
@@ -459,19 +459,19 @@ function Env(t, e) {
msg(e = t, s = "", i = "", r) {
const o = t => {
if (!t) return t;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0;
if ("object" == typeof t) {
if (this.isLoon()) {
let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"];
return {openUrl: e, mediaUrl: s}
return { openUrl: e, mediaUrl: s }
}
if (this.isQuanX()) {
let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl;
return {"open-url": e, "media-url": s}
return { "open-url": e, "media-url": s }
}
if (this.isSurge()) {
let e = t.url || t.openUrl || t["open-url"];
return {url: e}
return { url: e }
}
}
};
+41 -41
View File
@@ -22,22 +22,22 @@ export yml_sytt_data='手机号&密码'
手机号 密码 填入自己的数据就行
=============变量获取==========
懒得写了,自己研究吧
不会的请百度或者群里求助:QQ群:1001401060 tg:https://t.me/yml_tg
不会的请百度或者群里求助:QQ群:884234287 tg:https://t.me/yml_tg
*/
const axios = require("axios");
const qs = require("qs");
const $ = new Env('十堰头条');
const notify = $.isNode() ? require('./sendNotify') : '';
let app_yml_sytt_data='';
let app_yml_sytt_data = '';
let user = '';
let pwd = '';
let uid;
// 这里设置评论内容 打开的请 自行修改内容 默认关闭
// 回帖评论
let htpl='十堰太美了呀!'
let htpl = '十堰太美了呀!'
// 评论红包
let plhb='十堰太美了呀!'
let plhb = '十堰太美了呀!'
!(async () => {
@@ -49,7 +49,7 @@ let plhb='十堰太美了呀!'
}
if (process.env.yml_sytt_data && process.env.yml_sytt_data.indexOf('@') > -1) {
app_yml_sytt_data = process.env.yml_sytt_data.split('@');
}else {
} else {
app_yml_sytt_data = process.env.yml_sytt_data.split();
}
}
@@ -89,12 +89,12 @@ let plhb='十堰太美了呀!'
await fxwz();
await $.wait(2 * 1000);
// 发布评论(评论红包)
// await plid();
// await $.wait(2 * 1000);
// 回复帖子
// await tzid();
// await $.wait(2 * 1000);
@@ -133,7 +133,7 @@ function syttdl(timeout = 0) {
return new Promise((resolve) => {
let url = {
url: urldl,
headers: { } ,
headers: {},
body: '',
}
// console.log(url);
@@ -147,7 +147,7 @@ function syttdl(timeout = 0) {
console.log(`登录用户: ${user}`)
$.log(`\n【🎉🎉🎉 恭喜您鸭 🎉🎉🎉】登录状态: ${result.retinfo} ✅ `)
// await $.wait(3 * 1000)
}else {
} else {
$.log(`\n【🎉 恭喜个屁 🎉】登录状态:${result.retinfo} `)
}
uid = result.data.uid
@@ -168,7 +168,7 @@ function cxsy(timeout = 0) {
return new Promise((resolve) => {
let url = {
url: `https://app.site.10yan.com.cn/index.php?s=/Api/Activityv1/minemonetotal&id=5&uid=${uid}&source=android&ver=6.2.3&build=145`,
headers:'',
headers: '',
}
// console.log(url);
$.get(url, async (err, resp, data) => {
@@ -180,7 +180,7 @@ function cxsy(timeout = 0) {
if (result.code == 200) {
$.log(`\n【🎉🎉🎉 查询收益 🎉🎉🎉】\n 今日收益${result.data.todaymoney} \n 累计收益${result.data.totalmoney} \n 待提现 ${result.data.cashmoney} 💪🏻 `)
// await $.wait(3 * 1000)
}else {
} else {
$.log(`\n【🎉🎉🎉 查询收益 🎉🎉🎉】:失败 ❌ 了呢,原因未知! `)
}
} catch (e) {
@@ -200,7 +200,7 @@ function syttqd(timeout = 0) {
return new Promise((resolve) => {
let url = {
url: `https://app.site.10yan.com.cn/index.php?s=/Api/Activityv1/sign&uid=${uid}&source=android&ver=6.2.3&build=145`,
headers:'',
headers: '',
}
// console.log(url);
$.get(url, async (err, resp, data) => {
@@ -214,7 +214,7 @@ function syttqd(timeout = 0) {
// await $.wait(3 * 1000)
} else if (result.code == 400) {
$.log(`\n【🎉 恭喜个屁 🎉】签到状态: ${result.retinfo}`)
}else {
} else {
$.log(`\n【🎉 恭喜个屁 🎉】执行签到:失败 ❌ 了呢,原因未知! `)
}
} catch (e) {
@@ -284,7 +284,7 @@ function hqplid(timeout = 0) {
let config = {
method: 'get',
url: `https://app.site.10yan.com.cn/index.php?s=/Api/Article/index/&contentid=${wzid}&page=1&uid=${uid}`,
headers: { }
headers: {}
};
axios(config)
.then(function (response) {
@@ -292,7 +292,7 @@ function hqplid(timeout = 0) {
// console.log(JSON.stringify(response.data));
// pl_data =response.data.list
// console.log(pl_data)
for ( k = 0; k < response.data.list.length; k++) {
for (k = 0; k < response.data.list.length; k++) {
usid = response.data.list[k].userid;
// console.log(usid)
if (usid == `${uid}`) {
@@ -319,7 +319,7 @@ function hqplid(timeout = 0) {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
data : data
data: data
};
axios(config)
@@ -380,7 +380,7 @@ function fxwz1(timeout = 0) {
let config = {
method: 'get',
url: `https://app.site.10yan.com.cn/index.php?s=/Api/Activityv1/getNewsShareTask&contentid=${fxwzid}&uid=${uid}&source=android&ver=6.2.3`,
headers: { }
headers: {}
};
axios(config)
@@ -437,7 +437,7 @@ function tzpl(timeout = 0) {
headers: {
'content-type': 'application/x-www-form-urlencoded'
},
data : data
data: data
};
axios(config)
@@ -468,7 +468,7 @@ function Env(t, e) {
}
send(t, e = "GET") {
t = "string" == typeof t ? {url: t} : t;
t = "string" == typeof t ? { url: t } : t;
let s = this.get;
return "POST" === e && (s = this.post), new Promise((e, i) => {
s.call(this, t, (t, s, r) => {
@@ -547,7 +547,7 @@ function Env(t, e) {
getScript(t) {
return new Promise(e => {
this.get({url: t}, (t, s, i) => e(i))
this.get({ url: t }, (t, s, i) => e(i))
})
}
@@ -559,8 +559,8 @@ function Env(t, e) {
r = r ? 1 * r : 20, r = e && e.timeout ? e.timeout : r;
const [o, h] = i.split("@"), n = {
url: `http://${h}/v1/scripting/evaluate`,
body: {script_text: t, mock_type: "cron", timeout: r},
headers: {"X-Key": o, Accept: "*/*"}
body: { script_text: t, mock_type: "cron", timeout: r },
headers: { "X-Key": o, Accept: "*/*" }
};
this.post(n, (t, e, i) => s(i))
}).catch(t => this.logErr(t))
@@ -648,11 +648,11 @@ function Env(t, e) {
get(t, e = (() => {
})) {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient.get(t, (t, s, i) => {
if (t.headers && (delete t.headers["Content-Type"], delete t.headers["Content-Length"]), this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient.get(t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let s = require("iconv-lite");
this.initGotEnv(t), this.got(t).on("redirect", (t, e) => {
@@ -665,10 +665,10 @@ function Env(t, e) {
this.logErr(t)
}
}).then(t => {
const {statusCode: i, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: i, statusCode: r, headers: o, rawBody: h}, s.decode(h, this.encoding))
const { statusCode: i, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: i, statusCode: r, headers: o, rawBody: h }, s.decode(h, this.encoding))
}, t => {
const {message: i, response: r} = t;
const { message: i, response: r } = t;
e(i, r, r && s.decode(r.rawBody, this.encoding))
})
}
@@ -677,20 +677,20 @@ function Env(t, e) {
post(t, e = (() => {
})) {
const s = t.method ? t.method.toLocaleLowerCase() : "post";
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, {"X-Surge-Skip-Scripting": !1})), $httpClient[s](t, (t, s, i) => {
if (t.body && t.headers && !t.headers["Content-Type"] && (t.headers["Content-Type"] = "application/x-www-form-urlencoded"), t.headers && delete t.headers["Content-Length"], this.isSurge() || this.isLoon()) this.isSurge() && this.isNeedRewrite && (t.headers = t.headers || {}, Object.assign(t.headers, { "X-Surge-Skip-Scripting": !1 })), $httpClient[s](t, (t, s, i) => {
!t && s && (s.body = i, s.statusCode = s.status), e(t, s, i)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, {hints: !1})), $task.fetch(t).then(t => {
const {statusCode: s, statusCode: i, headers: r, body: o} = t;
e(null, {status: s, statusCode: i, headers: r, body: o}, o)
}); else if (this.isQuanX()) t.method = s, this.isNeedRewrite && (t.opts = t.opts || {}, Object.assign(t.opts, { hints: !1 })), $task.fetch(t).then(t => {
const { statusCode: s, statusCode: i, headers: r, body: o } = t;
e(null, { status: s, statusCode: i, headers: r, body: o }, o)
}, t => e(t)); else if (this.isNode()) {
let i = require("iconv-lite");
this.initGotEnv(t);
const {url: r, ...o} = t;
const { url: r, ...o } = t;
this.got[s](r, o).then(t => {
const {statusCode: s, statusCode: r, headers: o, rawBody: h} = t;
e(null, {status: s, statusCode: r, headers: o, rawBody: h}, i.decode(h, this.encoding))
const { statusCode: s, statusCode: r, headers: o, rawBody: h } = t;
e(null, { status: s, statusCode: r, headers: o, rawBody: h }, i.decode(h, this.encoding))
}, t => {
const {message: s, response: r} = t;
const { message: s, response: r } = t;
e(s, r, r && i.decode(r.rawBody, this.encoding))
})
}
@@ -715,19 +715,19 @@ function Env(t, e) {
msg(e = t, s = "", i = "", r) {
const o = t => {
if (!t) return t;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? {"open-url": t} : this.isSurge() ? {url: t} : void 0;
if ("string" == typeof t) return this.isLoon() ? t : this.isQuanX() ? { "open-url": t } : this.isSurge() ? { url: t } : void 0;
if ("object" == typeof t) {
if (this.isLoon()) {
let e = t.openUrl || t.url || t["open-url"], s = t.mediaUrl || t["media-url"];
return {openUrl: e, mediaUrl: s}
return { openUrl: e, mediaUrl: s }
}
if (this.isQuanX()) {
let e = t["open-url"] || t.url || t.openUrl, s = t["media-url"] || t.mediaUrl;
return {"open-url": e, "media-url": s}
return { "open-url": e, "media-url": s }
}
if (this.isSurge()) {
let e = t.url || t.openUrl || t["open-url"];
return {url: e}
return { url: e }
}
}
};
+1 -1
View File
@@ -9,7 +9,7 @@
* 变量格式: export wxwpCookies='账号1 user_id的值 @ 账号2 user_id的值' 多个账号用 @分割
* bublysmile.com 关键词 user_id在body中 基本每个包都有变量
*
* 还是不会的请百度或者群里求助:QQ群:1001401060 tg:https://t.me/yml_tg
* 还是不会的请百度或者群里求助:QQ群:884234287 tg:https://t.me/yml_tg
*/
const $ = new Env("微笑趣泡");