From 08c15fd378f6020ac0b07bcfd1c8c66bc6eb0040 Mon Sep 17 00:00:00 2001 From: yysforget <1121504223@qq.com> Date: Wed, 10 Jul 2024 12:08:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=94=BB=E7=95=A5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/guide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/guide.js b/apps/guide.js index 834c8e5..17e6039 100644 --- a/apps/guide.js +++ b/apps/guide.js @@ -40,14 +40,14 @@ export class Guide extends ZZZPlugin { await this.reply('该角色不存在'); return; } - const filename = `role_guide_${name}.png`; + const filename = `role_guide_${id}.png`; const guidePath = path.join(ZZZ_GUIDES_PATH, filename); if (fs.existsSync(guidePath)) { await this.e.reply(segment.image(`file://${guidePath}`)); return; } //目前攻略较少,暂为1 - if (await this.getImg(name, 1)) { + if (await this.getImg(id, 1)) { await this.e.reply(segment.image(`file://${guidePath}`)) }