fix: 多账号出错回传错误

This commit is contained in:
shanmite 2021-07-29 20:18:00 +08:00
parent de88467c03
commit 53ae976caf
9 changed files with 11 additions and 48 deletions

View File

@ -33,8 +33,12 @@ async function main() {
process.env.COOKIE = acco.COOKIE;
process.env.NUMBER = acco.NUMBER;
process.env.CLEAR = acco.CLEAR;
await main();
await delay(acco.WAIT);
const err_msg = await main();
if (err_msg) {
return err_msg
} else {
await delay(acco.WAIT);
}
}
/**多账号状态还原 */

View File

@ -84,7 +84,7 @@ module.exports = {
* - 循环等待时间(指所有操作完毕后的休眠时间)
* - 单位毫秒
*/
lottery_loop_wait: 60 * 60 * 1000,
lottery_loop_wait: 0,
check_loop_wait: 0,
clear_loop_wait: 0,

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
# 脚本根目录
SCRIPT_FOLDER=lottery
@ -61,7 +62,7 @@ docker run \
$DOCKER_REPO \
start" \
> start.sh
chmod 777 start.sh
chmod +x start.sh
echo "create check.sh"
echo -e "#!/bin/bash\n\
@ -72,7 +73,7 @@ docker run \
$DOCKER_REPO \
check" \
> check.sh
chmod 777 check.sh
chmod +x check.sh
echo "create clear.sh"
echo -e "#!/bin/bash\n\
@ -83,4 +84,4 @@ docker run \
$DOCKER_REPO \
clear" \
> clear.sh
chmod 777 clear.sh
chmod +x clear.sh

View File

@ -1,5 +0,0 @@
#!/bin/bash
cd ..
cd ..
npm i
npm run check

View File

@ -1,5 +0,0 @@
#!/bin/bash
cd ..
cd ..
npm i
npm run clear

View File

@ -1,5 +0,0 @@
#!/bin/bash
cd ..
cd ..
npm i
npm run start

View File

@ -1,9 +0,0 @@
chcp 65001
cd ..
cd ..
npm i
npm run check
# 暂停
pause

View File

@ -1,9 +0,0 @@
chcp 65001
cd ..
cd ..
npm i
npm run clear
# 暂停
pause

View File

@ -1,9 +0,0 @@
chcp 65001
cd ..
cd ..
npm i
npm run start
# 暂停
pause