2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

修正云原神自动签到错误

This commit is contained in:
Ctrlcvs 2022-10-15 08:24:00 +08:00
parent 59f7531184
commit 2ffffa64be
2 changed files with 3 additions and 1 deletions

View File

@ -91,6 +91,7 @@ export default class miHoYoApi {
let response = {}
let start = Date.now()
try {
console.log(url, param)
response = await fetch(url, param)
} catch (error) {
logger.error(error.toString())

View File

@ -447,6 +447,7 @@ export default class user {
}
};
this.getyunToken(e)
this.e=e
await this.cloudSign();
await utils.sleepAsync(10000);
}
@ -480,7 +481,7 @@ export default class user {
return false
}
let tips = ['开始米游币签到任务']
let time = userIdList.length * 3.5 + 5
let time = userIdList.length * 100 + 5
let finishTime = moment().add(time, 's').format('MM-DD HH:mm:ss')
tips.push(`\n签到用户:${userIdList.length}`)
tips.push(`\n预计需要:${this.countTime(time)}`)