mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 perf: 优化冗余代码
This commit is contained in:
parent
b0b207b47b
commit
c18bd3fa0e
@ -176,7 +176,7 @@ export class query extends plugin {
|
||||
},
|
||||
)
|
||||
.then(resp => {
|
||||
// console.log(resp.data);
|
||||
// logger.info(resp.data);
|
||||
return resp.data.result.uri.replace("index.html", "m.html");
|
||||
})
|
||||
.then(async uri => {
|
||||
@ -254,7 +254,7 @@ export class query extends plugin {
|
||||
e.reply(segment.image(fs.readFileSync(filePath)));
|
||||
fs.unlinkSync(filePath, err => {
|
||||
if (err) throw err;
|
||||
console.error("删除青年大学习文件失败");
|
||||
logger.error("删除青年大学习文件失败");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user