fix: import path

This commit is contained in:
idranme 2024-08-05 19:18:15 +08:00
parent a2d1379866
commit 808777c044
No known key found for this signature in database
GPG Key ID: 926F7B5B668E495F
5 changed files with 8 additions and 11 deletions

View File

@ -3,7 +3,7 @@
"type": "extension", "type": "extension",
"name": "LLOneBot", "name": "LLOneBot",
"slug": "LLOneBot", "slug": "LLOneBot",
"description": "实现 OneBot 11 协议,帮助进行 QQ 机器人开发", "description": "实现 OneBot 11 协议,用以 QQ 机器人开发",
"version": "3.27.4", "version": "3.27.4",
"icon": "./icon.webp", "icon": "./icon.webp",
"authors": [ "authors": [

View File

@ -16,8 +16,8 @@ import fs from 'fs'
import { ReceiveCmdS } from '../hook' import { ReceiveCmdS } from '../hook'
import { log } from '@/common/utils' import { log } from '@/common/utils'
import { rkeyManager } from '@/ntqqapi/api/rkey' import { rkeyManager } from '@/ntqqapi/api/rkey'
import { wrapperApi } from '@/ntqqapi/native/wrapper' import { wrapperApi } from '@/ntqqapi/wrapper'
import { Peer } from '@/ntqqapi/api/msg' import { Peer } from '@/ntqqapi/types/msg'
export class NTQQFileApi { export class NTQQFileApi {
static async getVideoUrl(peer: Peer, msgId: string, elementId: string): Promise<string> { static async getVideoUrl(peer: Peer, msgId: string, elementId: string): Promise<string> {

View File

@ -6,7 +6,7 @@ import { ReceiveCmdS, registerReceiveHook } from '../hook'
import { log } from '../../common/utils/log' import { log } from '../../common/utils/log'
import { sleep } from '../../common/utils/helper' import { sleep } from '../../common/utils/helper'
import { isQQ998 } from '../../common/utils' import { isQQ998 } from '../../common/utils'
import { wrapperApi } from '@/ntqqapi/native/wrapper' import { wrapperApi } from '@/ntqqapi/wrapper'
export let sendMessagePool: Record<string, ((sendSuccessMsg: RawMessage) => void) | null> = {} // peerUid: callbackFunc export let sendMessagePool: Record<string, ((sendSuccessMsg: RawMessage) => void) | null> = {} // peerUid: callbackFunc

View File

@ -2,10 +2,8 @@ import { callNTQQApi, GeneralCallResult, NTQQApiClass, NTQQApiMethod } from '../
import { Group, SelfInfo, User } from '../types' import { Group, SelfInfo, User } from '../types'
import { ReceiveCmdS } from '../hook' import { ReceiveCmdS } from '../hook'
import { selfInfo, uidMaps } from '../../common/data' import { selfInfo, uidMaps } from '../../common/data'
import { NTQQWindowApi, NTQQWindows } from './window'
import { cacheFunc, isQQ998, log, sleep } from '../../common/utils' import { cacheFunc, isQQ998, log, sleep } from '../../common/utils'
import { wrapperApi } from '@/ntqqapi/native/wrapper' import { wrapperApi } from '@/ntqqapi/wrapper'
import * as https from 'https'
import { RequestUtil } from '@/common/utils/request' import { RequestUtil } from '@/common/utils/request'
let userInfoCache: Record<string, User> = {} // uid: User let userInfoCache: Record<string, User> = {} // uid: User

View File

@ -1,5 +1,4 @@
import { GroupMemberRole } from './group' import { GroupMemberRole } from './group'
import exp from 'constants'
export enum ElementType { export enum ElementType {
TEXT = 1, TEXT = 1,
@ -417,7 +416,7 @@ export interface RawMessage {
} }
export interface Peer { export interface Peer {
chatType: ChatType; chatType: ChatType
peerUid: string; // 如果是群聊uid为群号私聊uid就是加密的字符串 peerUid: string // 如果是群聊uid为群号私聊uid就是加密的字符串
guildId?: string; guildId?: string
} }