mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-04 12:11:18 +08:00
feat: 平台类型修改
This commit is contained in:
@@ -19,7 +19,7 @@ import { parser } from 'stream-json'
|
||||
import { pick } from 'stream-json/filters/Pick'
|
||||
import { streamValues } from 'stream-json/streamers/StreamValues'
|
||||
import { chain } from 'stream-chain'
|
||||
import { ChatPlatform, ChatType, MessageType } from '../../../../src/types/chat'
|
||||
import { KNOWN_PLATFORMS, ChatType, MessageType } from '../../../../src/types/chat'
|
||||
import type {
|
||||
FormatFeature,
|
||||
FormatModule,
|
||||
@@ -48,7 +48,7 @@ function extractNameFromFilePath(filePath: string): string {
|
||||
export const feature: FormatFeature = {
|
||||
id: 'ycccccccy-echotrace',
|
||||
name: 'ycccccccy/echotrace 微信导出',
|
||||
platform: ChatPlatform.WECHAT,
|
||||
platform: KNOWN_PLATFORMS.WECHAT,
|
||||
priority: 15,
|
||||
extensions: ['.json'],
|
||||
signatures: {
|
||||
@@ -357,7 +357,7 @@ async function* parseEchotrace(options: ParseOptions): AsyncGenerator<ParseEvent
|
||||
// 发送 meta
|
||||
const meta: ParsedMeta = {
|
||||
name: chatName,
|
||||
platform: ChatPlatform.WECHAT,
|
||||
platform: KNOWN_PLATFORMS.WECHAT,
|
||||
type: chatType,
|
||||
groupId,
|
||||
groupAvatar,
|
||||
|
||||
Reference in New Issue
Block a user