多账号通知合并

This commit is contained in:
yml2213
2022-05-02 19:53:31 +08:00
parent 03725b1a04
commit 42940845c0
13 changed files with 427 additions and 418 deletions
+2 -1
View File
@@ -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
View File
@@ -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
View File
@@ -116,8 +116,9 @@ let choose_gold_num = 1;
await watering(ck);
await $.wait(2 * 1000);
await SendMsg(msg);
}
await SendMsg(msg);
}
})()
+2 -1
View File
@@ -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
View File
@@ -68,11 +68,9 @@ let msg = '';
await user_info();
await $.wait(2 * 1000);
await SendMsg(msg);
}
await SendMsg(msg);
}
+2 -1
View File
@@ -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);
}
+2 -1
View File
@@ -97,8 +97,9 @@ let request_url = {
await $.wait(2 * 1000);
await SendMsg(msg);
}
await SendMsg(msg);
}
})()
+2 -1
View File
@@ -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
View File
@@ -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
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -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
View File
@@ -76,8 +76,9 @@ let ts = Math.round(new Date().getTime()).toString();
// await $.wait(2 * 1000);
await SendMsg(msg);
}
await SendMsg(msg);
}
+28 -28
View File
@@ -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}`)
}
}
}
)
}