Commit 40cbc7b7 by Sixong.Zhu

u

parent 6431eaf6
Showing with 12 additions and 12 deletions
...@@ -9,11 +9,11 @@ const chatInfo: ChatInfo = {}; ...@@ -9,11 +9,11 @@ const chatInfo: ChatInfo = {};
export const getChatModel = () => chatInfo; export const getChatModel = () => chatInfo;
const loadingKeys = new Set<string>(); const loadingKeys = new Set<string>();
let waitingAction = []; let waitingAction: { key: string; resolve: (d: ChatModelInfoData) => void }[] = [];
export interface ChatModelInfoData { export interface ChatModelInfoData {
uniplatId: string | number; uniplatId: string | number;
chat_id: number; chat_id: number | string;
uniplat_version: number; uniplat_version: number;
data: any; data: any;
} }
...@@ -62,17 +62,17 @@ export async function getChatModelInfo( ...@@ -62,17 +62,17 @@ export async function getChatModelInfo(
const o = ( const o = (
info.row && info.row.UniplatChatId info.row && info.row.UniplatChatId
? { ? {
uniplatId: info.row.UniplatChatId.value, uniplatId: info.row.UniplatChatId.value,
chat_id: +info.row.UniplatImChatId.value, chat_id: +(info.row.UniplatImChatId.value as string),
uniplat_version: 0, uniplat_version: 0,
data, data,
} }
: { : {
uniplatId: 0, uniplatId: 0,
chat_id: 0, chat_id: 0,
uniplat_version: 0, uniplat_version: 0,
data, data,
} }
) as ChatModelInfoData; ) as ChatModelInfoData;
let removing = []; let removing = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment