mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-12-05 15:41:56 +00:00
fix(ui): adjust image URL check condition
This commit is contained in:
parent
f171a534a9
commit
2a43f40b5f
@ -141,7 +141,7 @@ async function extractUserMessage(msg, nickname, e) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
const imgUrls = await YunzaiUtils.getImages(e, 1, true);
|
const imgUrls = await YunzaiUtils.getImages(e, 1, true);
|
||||||
if (imgUrls.length > 0) {
|
if (imgUrls) {
|
||||||
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]发送了一张图片(你可能暂时无法查看)\n`;
|
returnMessage += `[${e.sender?.nickname},id:${e.user_id}]发送了一张图片(你可能暂时无法查看)\n`;
|
||||||
}
|
}
|
||||||
return returnMessage;
|
return returnMessage;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user