mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: remove adapter check for getImg
This commit is contained in:
parent
01425103f4
commit
5c7c430da6
1 changed files with 4 additions and 4 deletions
|
|
@ -715,9 +715,9 @@ export async function getImg (e) {
|
||||||
if (e.source) {
|
if (e.source) {
|
||||||
let reply
|
let reply
|
||||||
let seq = e.isGroup ? e.source.seq : e.source.time
|
let seq = e.isGroup ? e.source.seq : e.source.time
|
||||||
if (e.adapter === 'shamrock') {
|
// if (e.adapter === 'shamrock') {
|
||||||
seq = e.source.message_id
|
// seq = e.source.message_id
|
||||||
}
|
// }
|
||||||
if (e.isGroup) {
|
if (e.isGroup) {
|
||||||
reply = (await e.group.getChatHistory(seq, 1)).pop()?.message
|
reply = (await e.group.getChatHistory(seq, 1)).pop()?.message
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1355,4 +1355,4 @@ export function extractMarkdownJson(text) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return mdJsonPairs
|
return mdJsonPairs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue