后台:json上传
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// 聊天模板表
|
||||
import { readJsonFile } from '../util'
|
||||
import { readFileAndParse } from '../util'
|
||||
import { FILENAME } from '../../consts'
|
||||
|
||||
export interface DicChatSystem {
|
||||
@@ -10,8 +10,7 @@ export interface DicChatSystem {
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_CHAT_SYSTEM);
|
||||
let arr = JSON.parse(str);
|
||||
let arr = readFileAndParse(FILENAME.DIC_CHAT_SYSTEM);
|
||||
|
||||
export const dicChatSystem = new Map<number, DicChatSystem>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user