diff --git a/src/core/apis/group.ts b/src/core/apis/group.ts index a542dc38..c22660b8 100644 --- a/src/core/apis/group.ts +++ b/src/core/apis/group.ts @@ -12,7 +12,6 @@ import { import { isNumeric, solveAsyncProblem } from '@/common/helper'; import { LimitedHashTable } from '@/common/message-unique'; import { NTEventWrapper } from '@/common/event'; -import { b, c } from 'vite/dist/node/types.d-aGj9QkWt'; export class NTQQGroupApi { context: InstanceContext; diff --git a/src/core/apis/packet.ts b/src/core/apis/packet.ts index e2f70569..4794f7be 100644 --- a/src/core/apis/packet.ts +++ b/src/core/apis/packet.ts @@ -191,7 +191,7 @@ export class NTQQPacketApi { async sendMiniAppShareInfoReq(param: MiniAppReqParams) { const data = this.packetSession?.packer.packMiniAppAdaptShareInfo(param); const ret = await this.sendPacket("LightAppSvc.mini_app_share.AdaptShareInfo", data!, true); - const body = new NapProtoMsg(MiniAppAdaptShareInfoResp).decode(Buffer.from(ret.hex_data, 'hex')) + const body = new NapProtoMsg(MiniAppAdaptShareInfoResp).decode(Buffer.from(ret.hex_data, 'hex')); return JSON.parse(body.content.jsonContent) as MiniAppRawData; } } diff --git a/src/core/packet/helper/miniAppHelper.ts b/src/core/packet/helper/miniAppHelper.ts index 62fb1366..a65f4e3c 100644 --- a/src/core/packet/helper/miniAppHelper.ts +++ b/src/core/packet/helper/miniAppHelper.ts @@ -38,7 +38,7 @@ export abstract class MiniAppInfo { }); MiniAppInfo.appMap.set("bili", this); } - } + }; static WeiBo = new class extends MiniAppInfo { constructor() { @@ -56,7 +56,7 @@ export abstract class MiniAppInfo { }); MiniAppInfo.appMap.set("weibo", this); } - } + }; } export class MiniAppInfoHelper { diff --git a/src/core/packet/packer.ts b/src/core/packet/packer.ts index eff1bec5..285eb03b 100644 --- a/src/core/packet/packer.ts +++ b/src/core/packet/packer.ts @@ -742,6 +742,6 @@ export class PacketPacker { } } ) - ) + ); } } diff --git a/src/onebot/action/extends/GetMiniAppArk.ts b/src/onebot/action/extends/GetMiniAppArk.ts index 73ae5d74..6baafb80 100644 --- a/src/onebot/action/extends/GetMiniAppArk.ts +++ b/src/onebot/action/extends/GetMiniAppArk.ts @@ -1,8 +1,8 @@ -import {ActionName} from '../types'; -import {FromSchema, JSONSchema} from 'json-schema-to-ts'; -import {GetPacketStatusDepends} from "@/onebot/action/packet/GetPacketStatus"; -import {MiniAppData, MiniAppRawData, MiniAppReqCustomParams, MiniAppReqParams} from "@/core/packet/entities/miniApp"; -import {MiniAppInfo, MiniAppInfoHelper} from "@/core/packet/helper/miniAppHelper"; +import { ActionName } from '../types'; +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import { GetPacketStatusDepends } from "@/onebot/action/packet/GetPacketStatus"; +import { MiniAppData, MiniAppRawData, MiniAppReqCustomParams, MiniAppReqParams } from "@/core/packet/entities/miniApp"; +import { MiniAppInfo, MiniAppInfoHelper } from "@/core/packet/helper/miniAppHelper"; const SchemaData = { type: 'object', @@ -11,21 +11,21 @@ const SchemaData = { type: 'string', enum: ['bili', 'weibo'] }, - title: {type: 'string'}, - desc: {type: 'string'}, - picUrl: {type: 'string'}, - jumpUrl: {type: 'string'}, - iconUrl: {type: 'string'}, - sdkId: {type: 'string'}, - appId: {type: 'string'}, - scene: {type: ['number', 'string']}, - templateType: {type: ['number', 'string']}, - businessType: {type: ['number', 'string']}, - verType: {type: ['number', 'string']}, - shareType: {type: ['number', 'string']}, - versionId: {type: 'string'}, - withShareTicket: {type: ['number', 'string']}, - rawArkData: {type: ['boolean', 'string']} + title: { type: 'string' }, + desc: { type: 'string' }, + picUrl: { type: 'string' }, + jumpUrl: { type: 'string' }, + iconUrl: { type: 'string' }, + sdkId: { type: 'string' }, + appId: { type: 'string' }, + scene: { type: ['number', 'string'] }, + templateType: { type: ['number', 'string'] }, + businessType: { type: ['number', 'string'] }, + verType: { type: ['number', 'string'] }, + shareType: { type: ['number', 'string'] }, + versionId: { type: 'string' }, + withShareTicket: { type: ['number', 'string'] }, + rawArkData: { type: ['boolean', 'string'] } }, oneOf: [ { @@ -75,11 +75,11 @@ export class GetMiniAppArk extends GetPacketStatusDepends