@alemonjs/qq-bot 2.1.0-alpha.26 → 2.1.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/sends.js +3 -0
- package/package.json +1 -1
package/lib/sends.js
CHANGED
|
@@ -266,6 +266,9 @@ const sendOpenApiMessage = async (content, val, baseParams, uploadMedia, sendMes
|
|
|
266
266
|
const images = filterImages(val);
|
|
267
267
|
if (images.length > 0) {
|
|
268
268
|
const url = await resolveRichMediaUrl(images, uploadMedia);
|
|
269
|
+
if (!url) {
|
|
270
|
+
return [createResult(ResultCode.Fail, '图片上传失败', null)];
|
|
271
|
+
}
|
|
269
272
|
const res = await sendMessage({
|
|
270
273
|
content,
|
|
271
274
|
media: { file_info: url },
|