去除一些console

This commit is contained in:
yoimiya-kokomi 2022-04-15 05:08:36 +08:00
parent 705460abe1
commit 529155e75e
2 changed files with 0 additions and 10 deletions

View File

@ -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 {

View File

@ -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];
}