chore: 整理代码

This commit is contained in:
手瓜一十雪 2024-07-13 18:20:44 +08:00
parent 902041d4ee
commit 8ee99109dc
3 changed files with 4 additions and 4 deletions

3
script/NapCat.Way01.bat Normal file
View File

@ -0,0 +1,3 @@
REM 全新启动脚本 基于 Hook Native 预计版本1.6.0左右发布
@echo off
pause

View File

@ -37,8 +37,6 @@ import { Data as SysData } from '@/proto/SysMessage';
import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange'; import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange';
import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent'; import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent';
import { isEqual } from '@/common/utils/helper'; import { isEqual } from '@/common/utils/helper';
import { MiniAppUtil } from '@/common/utils/Packet';
import { RequestUtil } from '@/common/utils/request';
//下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便 //下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便
// //

View File

@ -1,12 +1,11 @@
import { Response } from 'express'; import { Response } from 'express';
import { OB11Response } from '../action/OB11Response'; import { OB11Response } from '../action/OB11Response';
import { HttpServerBase } from '@/common/server/http'; import { HttpServerBase } from '@/common/server/http';
import { actionHandlers, actionMap } from '../action'; import { actionMap } from '../action';
import { ob11Config } from '@/onebot11/config'; import { ob11Config } from '@/onebot11/config';
import { selfInfo } from '@/core/data'; import { selfInfo } from '@/core/data';
import { OB11HeartbeatEvent } from '@/onebot11/event/meta/OB11HeartbeatEvent'; import { OB11HeartbeatEvent } from '@/onebot11/event/meta/OB11HeartbeatEvent';
import { postOB11Event } from '@/onebot11/server/postOB11Event'; import { postOB11Event } from '@/onebot11/server/postOB11Event';
import { napCatCore } from '@/core';
class OB11HTTPServer extends HttpServerBase { class OB11HTTPServer extends HttpServerBase {
name = 'OneBot V11 server'; name = 'OneBot V11 server';