Skip to content

Commit 3a985fc

Browse files
authored
fix:修复icqq多次上传的问题
1 parent 8306797 commit 3a985fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

module/utils/Base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ export const uploadFile = async (e, file, videoUrl, options) => {
429429
return true
430430
} else {
431431
// ICQQ适配器单独处理视频上传
432-
if (botAdapter === 'ICQQ' && target?.uploadVideo) await uploadVideo(e, file, File, options)
432+
if (botAdapter === 'ICQQ' && target?.uploadVideo) return await uploadVideo(e, file, File, options)
433433
const status = isActiveMessage
434434
? await target?.sendMsg(segment.video(File) || videoUrl)
435435
: await e.reply(segment.video(File) || videoUrl)
@@ -615,7 +615,7 @@ const uploadVideo = async (e, fileInfo, file, uploadOpt) => {
615615

616616
// 发送视频消息
617617
const status = uploadOpt?.active && uploadOpt?.activeOption
618-
? await Bot[uploadOpt.activeOption.uin]?.pickGroup(uploadOpt.activeOption.group_id)?.sendMsg(segment.video(file))
618+
? await target?.sendMsg(segment.video(file))
619619
: await e.reply(segment.video(file))
620620

621621
return !!status?.message_id

0 commit comments

Comments
 (0)