mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2025-01-22 22:11:22 +08:00
去除blue日志消息,避免部分机型启动时加载不出blue日志类型导致部分指令报错
This commit is contained in:
parent
83fbfd6581
commit
37c1546dbc
@ -43,12 +43,12 @@ export default class mysTopLogin {
|
|||||||
device: this.device, ticket
|
device: this.device, ticket
|
||||||
})
|
})
|
||||||
if (res?.data?.stat == "Scanned" && RedisData.GetQrCode == 1) {
|
if (res?.data?.stat == "Scanned" && RedisData.GetQrCode == 1) {
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`)
|
||||||
await this.e.reply("二维码已扫描,请确认登录", true)
|
await this.e.reply("二维码已扫描,请确认登录", true)
|
||||||
RedisData.GetQrCode++;
|
RedisData.GetQrCode++;
|
||||||
}
|
}
|
||||||
if (res?.data?.stat == "Confirmed") {
|
if (res?.data?.stat == "Confirmed") {
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -79,7 +79,7 @@ export default class mysTopLogin {
|
|||||||
account: msg[0], password: msg[1],
|
account: msg[0], password: msg[1],
|
||||||
}
|
}
|
||||||
let res = await this.user.getData("loginByPassword", body, "")
|
let res = await this.user.getData("loginByPassword", body, "")
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`)
|
||||||
if (res.retcode == -3101) {
|
if (res.retcode == -3101) {
|
||||||
Bot.logger.mark("[米哈游登录] 正在验证")
|
Bot.logger.mark("[米哈游登录] 正在验证")
|
||||||
this.aigis_captcha_data = JSON.parse(res.aigis_data.data)
|
this.aigis_captcha_data = JSON.parse(res.aigis_data.data)
|
||||||
@ -102,13 +102,13 @@ export default class mysTopLogin {
|
|||||||
'x-rpc-aigis': aigis,
|
'x-rpc-aigis': aigis,
|
||||||
}
|
}
|
||||||
res = await this.user.getData("loginByPassword", body, false)
|
res = await this.user.getData("loginByPassword", body, false)
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`)
|
||||||
}
|
}
|
||||||
if (res.retcode == 0) {
|
if (res.retcode == 0) {
|
||||||
let cookies = `stoken=${res.data.token.token}&mid=${res.data.user_info.mid}`
|
let cookies = `stoken=${res.data.token.token}&mid=${res.data.user_info.mid}`
|
||||||
let cookie_token = await this.user.getData("bbsGetCookie", { cookies })
|
let cookie_token = await this.user.getData("bbsGetCookie", { cookies })
|
||||||
let ltoken = await this.user.getData('getLtoken', { cookies: `${cookies}` }, false)
|
let ltoken = await this.user.getData('getLtoken', { cookies: `${cookies}` }, false)
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(cookie_token))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(cookie_token))}`)
|
||||||
return {
|
return {
|
||||||
cookie: `ltoken=${ltoken?.data?.ltoken};ltuid=${res.data.user_info.aid};cookie_token=${cookie_token?.data?.cookie_token};`,
|
cookie: `ltoken=${ltoken?.data?.ltoken};ltuid=${res.data.user_info.aid};cookie_token=${cookie_token?.data?.cookie_token};`,
|
||||||
stoken: `${cookies.replace('&', ';')};stuid=${res.data.user_info.aid};`
|
stoken: `${cookies.replace('&', ';')};stuid=${res.data.user_info.aid};`
|
||||||
@ -120,7 +120,7 @@ export default class mysTopLogin {
|
|||||||
}
|
}
|
||||||
async crack_geetest() {
|
async crack_geetest() {
|
||||||
let res = ""; //await this.user.getData("microgg", this.aigis_captcha_data, false)
|
let res = ""; //await this.user.getData("microgg", this.aigis_captcha_data, false)
|
||||||
Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`)
|
Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`)
|
||||||
await this.e.reply(`请完成验证:https://challenge.minigg.cn/manual/index.html?gt=${this.aigis_captcha_data.gt}&challenge=${this.aigis_captcha_data.challenge}`, true)
|
await this.e.reply(`请完成验证:https://challenge.minigg.cn/manual/index.html?gt=${this.aigis_captcha_data.gt}&challenge=${this.aigis_captcha_data.challenge}`, true)
|
||||||
for (let n = 1; n < 60; n++) {
|
for (let n = 1; n < 60; n++) {
|
||||||
await utils.sleepAsync(5000)
|
await utils.sleepAsync(5000)
|
||||||
|
Loading…
Reference in New Issue
Block a user