fix: 偶尔出现不能上报

This commit is contained in:
linyuchen
2024-02-02 21:54:31 +08:00
parent 083d3ddf67
commit 3d03aec976
3 changed files with 5 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
"name": "LLOneBot", "name": "LLOneBot",
"slug": "LLOneBot", "slug": "LLOneBot",
"description": "LiteLoaderQQNT的OneBotApi", "description": "LiteLoaderQQNT的OneBotApi",
"version": "2.1.1", "version": "2.1.2",
"thumbnail": "./icon.png", "thumbnail": "./icon.png",
"authors": [{ "authors": [{
"name": "linyuchen", "name": "linyuchen",

View File

@@ -1,5 +1,6 @@
export enum AtType { export enum AtType {
notAt = 0, notAt = 0,
atAll = 1,
atUser = 2 atUser = 2
} }

View File

@@ -432,10 +432,11 @@ function onLoad() {
getGroups().then(() => { getGroups().then(() => {
getGroupsMembers(groups).then(() => { getGroupsMembers(groups).then(() => {
}); });
}); })
} }
window.LLAPI.on("new-messages", onNewMessages); window.LLAPI.on("new-messages", onNewMessages);
window.LLAPI.on("new-send-messages", onNewMessages); window.LLAPI.on("new-send-messages", onNewMessages);
window.llonebot.log("llonebot render start"); window.llonebot.log("llonebot render start");
window.llonebot.startExpress(); window.llonebot.startExpress();
@@ -615,7 +616,7 @@ async function onSettingWindowCreated(view: Element) {
} }
setTimeout(onLoad, 2000) setTimeout(onLoad, 5000);
export { export {
onSettingWindowCreated onSettingWindowCreated