mirror of
https://github.com/yml2213/javascript.git
synced 2026-10-19 06:41:52 +08:00
多账号通知合并
This commit is contained in:
+2
-1
@@ -77,6 +77,8 @@ async function tips(ckArr) {
|
||||
|
||||
await start();
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
@@ -93,7 +95,6 @@ async function start() {
|
||||
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -69,6 +69,8 @@ async function tips(ckArr) {
|
||||
|
||||
await start();
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
@@ -87,7 +89,6 @@ async function start() {
|
||||
await ad_video_info();
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -116,8 +116,9 @@ let choose_gold_num = 1;
|
||||
await watering(ck);
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
}
|
||||
|
||||
})()
|
||||
|
||||
+2
-1
@@ -76,6 +76,8 @@ async function tips(ckArr) {
|
||||
|
||||
await start();
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
@@ -121,7 +123,6 @@ async function start() {
|
||||
await rain_open_redbag();
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-4
@@ -68,11 +68,9 @@ let msg = '';
|
||||
await user_info();
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
|
||||
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ async function tips(ckArr) {
|
||||
await start()
|
||||
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
@@ -88,7 +90,6 @@ async function start() {
|
||||
await $.wait(2 * 1000)
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -97,8 +97,9 @@ let request_url = {
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
}
|
||||
|
||||
})()
|
||||
|
||||
+2
-1
@@ -74,6 +74,8 @@ async function tips(ckArr) {
|
||||
|
||||
await start();
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
@@ -119,7 +121,6 @@ async function start() {
|
||||
await rain_open_redbag();
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -66,6 +66,8 @@ async function tips(ckArr) {
|
||||
|
||||
await start();
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
.finally(() => $.done());
|
||||
@@ -78,7 +80,6 @@ async function start() {
|
||||
await $.wait(2 * 1000);
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
+377
-376
File diff suppressed because one or more lines are too long
+2
-1
@@ -119,8 +119,9 @@ let UA = 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_4 like Mac OS X) AppleWebKit/605
|
||||
await $.wait(1 * 1000);
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
}
|
||||
}
|
||||
})()
|
||||
|
||||
+2
-1
@@ -76,8 +76,9 @@ let ts = Math.round(new Date().getTime()).toString();
|
||||
// await $.wait(2 * 1000);
|
||||
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
+28
-28
@@ -70,9 +70,9 @@ async function tips(ckArr) {
|
||||
|
||||
await start(ck)
|
||||
|
||||
|
||||
|
||||
}
|
||||
await SendMsg(msg);
|
||||
|
||||
|
||||
})()
|
||||
.catch((e) => $.logErr(e))
|
||||
@@ -81,36 +81,36 @@ async function tips(ckArr) {
|
||||
|
||||
|
||||
|
||||
async function start(ck){
|
||||
async function start(ck) {
|
||||
let myDate = new Date()
|
||||
// @ts-ignore
|
||||
h = myDate.getHours()
|
||||
// console.log(h);
|
||||
// @ts-ignore
|
||||
if (h == 6) {
|
||||
console.log('开始 签到')
|
||||
await signin(ck)
|
||||
await $.wait(2 * 1000)
|
||||
}
|
||||
|
||||
|
||||
console.log('开始 开宝箱')
|
||||
await open_box(ck)
|
||||
// @ts-ignore
|
||||
h = myDate.getHours()
|
||||
// console.log(h);
|
||||
// @ts-ignore
|
||||
if (h == 6) {
|
||||
console.log('开始 签到')
|
||||
await signin(ck)
|
||||
await $.wait(2 * 1000)
|
||||
}
|
||||
|
||||
console.log('开始 大转盘')
|
||||
await turntable(ck)
|
||||
await $.wait(2 * 1000)
|
||||
|
||||
console.log('开始 摇红包')
|
||||
await redpackage(ck)
|
||||
await $.wait(2 * 1000)
|
||||
console.log('开始 开宝箱')
|
||||
await open_box(ck)
|
||||
await $.wait(2 * 1000)
|
||||
|
||||
console.log('开始 大转盘')
|
||||
await turntable(ck)
|
||||
await $.wait(2 * 1000)
|
||||
|
||||
console.log('开始 摇红包')
|
||||
await redpackage(ck)
|
||||
await $.wait(2 * 1000)
|
||||
|
||||
await SendMsg(msg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 签到 post
|
||||
* https://huyitool.jidiandian.cn/innovate-step-service/api/sign/signIn
|
||||
@@ -135,7 +135,7 @@ async function signin(token, timeout = 3 * 1000) {
|
||||
} else {
|
||||
console.log(`\n 签到: 失败 ❌ 了呢,原因未知!\n ${result} \n `)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -359,7 +359,7 @@ function user_info(timeout = 3 * 1000) {
|
||||
async function httpPost(postUrlObject, tip, timeout = 3 * 1000) {
|
||||
return new Promise((resolve) => {
|
||||
let url = postUrlObject
|
||||
if (!tip){
|
||||
if (!tip) {
|
||||
let tmp = arguments.callee.toString()
|
||||
let re = /function\s*(\w*)/i
|
||||
let matches = re.exec(tmp)
|
||||
@@ -393,7 +393,7 @@ async function httpPost(postUrlObject, tip, timeout = 3 * 1000) {
|
||||
|
||||
|
||||
// @ts-ignore
|
||||
function debugLog(...args){
|
||||
function debugLog(...args) {
|
||||
if (debug) {
|
||||
console.log(...args)
|
||||
}
|
||||
@@ -423,8 +423,8 @@ async function getCks(ck, str) {
|
||||
} else {
|
||||
console.log(`\n 【${$.name}】:未填写变量 ${str}`)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user