🐛 fix: 修复 #brq 可能存在文件夹不存在的情况 [#IADFFB]

This commit is contained in:
zhiyu1998 2024-07-19 16:25:23 +08:00
parent 1c3d72bc76
commit 05cc20faec

View File

@ -419,6 +419,8 @@ export class tools extends plugin {
const imgSendHook = function (e, path) {
e.reply([segment.image(path), segment.at(e.user_id), '请扫码以完成获取'], { recallMsg: 180 })
};
// 检查路径是否存在文件夹
await mkdirIfNotExists(this.defaultPath);
// 发送请求
const saveCodePath = `${ this.defaultPath }qrcode.png`;