fix: 移除无用代码

This commit is contained in:
手瓜一十雪 2024-08-24 21:54:11 +08:00
parent 0087495749
commit bc8235b209
2 changed files with 1 additions and 3 deletions

View File

@ -41,8 +41,7 @@ export enum GroupInviteType {
BYDISCUSSMEMBER
}
export interface GroupNotify {
time: number; // 自己添加的字段,时间戳,毫秒, 用于判断收到短时间内收到重复的notify
seq: string; // 唯一标识符转成数字再除以1000应该就是时间戳
seq: string; // 通知序列号
type: GroupNotifyMsgType;
status: GroupNotifyMsgStatus;
group: { groupCode: string; groupName: string };

View File

@ -327,7 +327,6 @@ export class NapCatOneBot11Adapter {
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_ADMIN,
].includes(notifies[0]?.type)) {
for (const notify of notifies) {
notify.time = Date.now();
const notifyTime = parseInt(notify.seq) / 1000 / 1000;
// log(`群通知时间${notifyTime}`, `启动时间${this.bootTime}`);
if (notifyTime < this.bootTime) {