mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐛 fix: 修复 #brq
可能存在文件夹不存在的情况 [#IADFFB]
This commit is contained in:
parent
1c3d72bc76
commit
05cc20faec
@ -419,6 +419,8 @@ export class tools extends plugin {
|
|||||||
const imgSendHook = function (e, path) {
|
const imgSendHook = function (e, path) {
|
||||||
e.reply([segment.image(path), segment.at(e.user_id), '请扫码以完成获取'], { recallMsg: 180 })
|
e.reply([segment.image(path), segment.at(e.user_id), '请扫码以完成获取'], { recallMsg: 180 })
|
||||||
};
|
};
|
||||||
|
// 检查路径是否存在文件夹
|
||||||
|
await mkdirIfNotExists(this.defaultPath);
|
||||||
// 发送请求
|
// 发送请求
|
||||||
const saveCodePath = `${ this.defaultPath }qrcode.png`;
|
const saveCodePath = `${ this.defaultPath }qrcode.png`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user