style&fix: lint & poke

This commit is contained in:
手瓜一十雪
2024-06-21 23:04:56 +08:00
parent 11121f2d09
commit 3447f4ae73
17 changed files with 169 additions and 170 deletions

View File

@@ -134,7 +134,7 @@ const _handlers: {
const uri2LocalRes = await uri2local(thumb);
if (uri2LocalRes.success) thumb = uri2LocalRes.path;
}
let videoEle = await SendMsgElementConstructor.video(path, fileName, thumb);
const videoEle = await SendMsgElementConstructor.video(path, fileName, thumb);
//未测试
context.deleteAfterSentFiles.push(videoEle.videoElement.filePath);
return videoEle;

View File

@@ -120,11 +120,11 @@ export class SendMsg extends BaseAction<OB11PostSendMsg, ReturnDataType> {
return { valid: false, message: `${payload.group_id}不存在` };
}
if (payload.user_id && payload.message_type !== 'group') {
let uid = await NTQQUserApi.getUidByUin(payload.user_id)
let isBuddy = await NTQQFriendApi.isBuddy(uid!);
const uid = await NTQQUserApi.getUidByUin(payload.user_id);
const isBuddy = await NTQQFriendApi.isBuddy(uid!);
// 此处有问题
if (!isBuddy) {
//return { valid: false, message: '异常消息' };
//return { valid: false, message: '异常消息' };
}
}
return { valid: true };