@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.
Files changed (2) hide show
  1. package/lib/sends.js +3 -0
  2. 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 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/qq-bot",
3
- "version": "2.1.0-alpha.26",
3
+ "version": "2.1.0-alpha.27",
4
4
  "description": "阿柠檬qq-bot平台连接",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",