Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix: 添加图片后,长时间再发显示图片过期 #138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/system/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class add extends plugin {
if (!this.e.msg?.includes("#结束添加")) {
/** 添加内容 */
for (const i of this.e.message) {
if (i.url) i.file = await this.saveFile(i)
if (i.url) { i.file = await this.saveFile(i); delete i.url; }
if (i.type == "at" && i.qq == this.e.self_id) continue
context.message.push(i)
}
Expand Down Expand Up @@ -379,4 +379,4 @@ export class add extends plugin {
let offset = (pageNo-1) * pageSize
return offset+pageSize >= array.length ? array.slice(offset, array.length) : array.slice(offset, offset+pageSize)
}
}
}