mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: 移除无用代码
This commit is contained in:
parent
0087495749
commit
bc8235b209
@ -41,8 +41,7 @@ export enum GroupInviteType {
|
|||||||
BYDISCUSSMEMBER
|
BYDISCUSSMEMBER
|
||||||
}
|
}
|
||||||
export interface GroupNotify {
|
export interface GroupNotify {
|
||||||
time: number; // 自己添加的字段,时间戳,毫秒, 用于判断收到短时间内收到重复的notify
|
seq: string; // 通知序列号
|
||||||
seq: string; // 唯一标识符,转成数字再除以1000应该就是时间戳?
|
|
||||||
type: GroupNotifyMsgType;
|
type: GroupNotifyMsgType;
|
||||||
status: GroupNotifyMsgStatus;
|
status: GroupNotifyMsgStatus;
|
||||||
group: { groupCode: string; groupName: string };
|
group: { groupCode: string; groupName: string };
|
||||||
|
@ -327,7 +327,6 @@ export class NapCatOneBot11Adapter {
|
|||||||
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_ADMIN,
|
GroupNotifyMsgType.CANCEL_ADMIN_NOTIFY_ADMIN,
|
||||||
].includes(notifies[0]?.type)) {
|
].includes(notifies[0]?.type)) {
|
||||||
for (const notify of notifies) {
|
for (const notify of notifies) {
|
||||||
notify.time = Date.now();
|
|
||||||
const notifyTime = parseInt(notify.seq) / 1000 / 1000;
|
const notifyTime = parseInt(notify.seq) / 1000 / 1000;
|
||||||
// log(`群通知时间${notifyTime}`, `启动时间${this.bootTime}`);
|
// log(`群通知时间${notifyTime}`, `启动时间${this.bootTime}`);
|
||||||
if (notifyTime < this.bootTime) {
|
if (notifyTime < this.bootTime) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user