From 37c1546dbc16e93a2a9060534e78013657e183d2 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Thu, 23 Mar 2023 23:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4blue=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B6=88=E6=81=AF=EF=BC=8C=E9=81=BF=E5=85=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=9C=BA=E5=9E=8B=E5=90=AF=E5=8A=A8=E6=97=B6=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E4=B8=8D=E5=87=BAblue=E6=97=A5=E5=BF=97=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=83=A8=E5=88=86=E6=8C=87=E4=BB=A4=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mhyTopUpLogin.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/model/mhyTopUpLogin.js b/model/mhyTopUpLogin.js index 2a558e7..64c2969 100644 --- a/model/mhyTopUpLogin.js +++ b/model/mhyTopUpLogin.js @@ -43,12 +43,12 @@ export default class mysTopLogin { device: this.device, ticket }) 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) RedisData.GetQrCode++; } if (res?.data?.stat == "Confirmed") { - Bot.logger.mark(`[米哈游登录] ${Bot.logger.blue(JSON.stringify(res))}`) + Bot.logger.mark(`[米哈游登录] ${Bot.logger.mark(JSON.stringify(res))}`) break } } @@ -79,7 +79,7 @@ export default class mysTopLogin { account: msg[0], password: msg[1], } 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) { Bot.logger.mark("[米哈游登录] 正在验证") this.aigis_captcha_data = JSON.parse(res.aigis_data.data) @@ -102,13 +102,13 @@ export default class mysTopLogin { 'x-rpc-aigis': aigis, } 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) { let cookies = `stoken=${res.data.token.token}&mid=${res.data.user_info.mid}` let cookie_token = await this.user.getData("bbsGetCookie", { cookies }) 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 { 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};` @@ -120,7 +120,7 @@ export default class mysTopLogin { } async crack_geetest() { 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) for (let n = 1; n < 60; n++) { await utils.sleepAsync(5000)