From 529155e75ef6cd149332c6d9ddf96313f482752a Mon Sep 17 00:00:00 2001 From: yoimiya-kokomi <592981798@qq.com> Date: Fri, 15 Apr 2022 05:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=80=E4=BA=9Bconsole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/character.js | 4 ---- components/Profile.js | 6 ------ 2 files changed, 10 deletions(-) diff --git a/apps/character.js b/apps/character.js index 41a579d1..a75acb07 100644 --- a/apps/character.js +++ b/apps/character.js @@ -57,7 +57,6 @@ export async function character(e, { render, User }) { if (!msg) { return; } - console.log(msg); if (Cfg.isDisable(e, "char.char")) { return; } @@ -68,14 +67,11 @@ export async function character(e, { render, User }) { } let name = msg.replace(/#|老婆|老公|详情|[1|2|5][0-9]{8}/g, "").trim(); - console.log(name); let char = Character.get(name); if (!char) { return false; } - console.log(char.id, char.name, mode); - if (mode === "profile") { return renderProfile(e, char, render); } else { diff --git a/components/Profile.js b/components/Profile.js index 1b069fa8..aefa35d4 100644 --- a/components/Profile.js +++ b/components/Profile.js @@ -77,11 +77,8 @@ let Data = { ret[key] = data[title] || ""; }) - console.log(data.items.length) - lodash.forEach(data.items, (ds) => { let char = Data.getAvatar(ds); - console.log(char) ret.chars[char.id] = char; }); @@ -212,10 +209,8 @@ let Profile = { let req = await fetch(api); let data = await req.text(); data = data.replace(/\x00/g, ''); - console.log(data); fs.writeFileSync(userPath + "/test.json", data); data = JSON.parse(data); - console.log(data); let userData = {}; if (data && data["角色名称"]) { userData = Profile.save(uid, data) @@ -248,7 +243,6 @@ let Profile = { if (fs.existsSync(userFile)) { userData = JSON.parse(fs.readFileSync(userFile, "utf8")) || {}; } - console.log(charId, lodash.keys(userData.chars)); if (userData && userData.chars && userData.chars[charId]) { return userData.chars[charId]; }