diff --git a/apps/tools.js b/apps/tools.js index 1722557..29b7689 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1105,12 +1105,24 @@ export class tools extends plugin { } catch (e) { realContent = content; } - const normalMsg = `识别:米游社,${ subject }\n${ realContent }`; + const normalMsg = `识别:米游社,${ subject }\n${ realContent?.describe || "" }`; const replyMsg = cover ? [segment.image(cover), normalMsg] : normalMsg; e.reply(replyMsg); + // 图片 + if (images && images.length > 1) { + const replyImages = images.map(item => { + return { + message: segment.image(item), + nickname: this.e.sender.card || this.e.user_id, + user_id: this.e.user_id, + } + }); + e.reply(Bot.makeForwardMsg(replyImages)); + } // 视频 - if (structured_content) { - const sc = JSON.parse(structured_content); + const sc = JSON.parse(structured_content); + logger.info(sc.length) + if (sc?.[0]?.insert.vod.resolutions) { // 逐个遍历是否包含url for (let i = 0; i < sc.length; i++) { const resolutions = sc?.[i]?.insert.vod.resolutions; @@ -1124,17 +1136,6 @@ export class tools extends plugin { } } } - // 这个判断防止发送重复图片 - if (images && images.length > 1) { - const replyImages = images.map(item => { - return { - message: segment.image(item), - nickname: this.e.sender.card || this.e.user_id, - user_id: this.e.user_id, - } - }); - e.reply(Bot.makeForwardMsg(replyImages)); - } }) } diff --git a/config/version.yaml b/config/version.yaml index 6fb00b7..9560eaf 100644 --- a/config/version.yaml +++ b/config/version.yaml @@ -1,5 +1,5 @@ - { - version: 1.5.0, + version: 1.5.1, data: [ 新增最右解析功能,