Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
40cbc7b7
authored
Dec 24, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
6431eaf6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
utils/chat-info.ts
utils/chat-info.ts
View file @
40cbc7b7
...
@@ -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
;
}
}
...
@@ -63,7 +63,7 @@ export async function getChatModelInfo(
...
@@ -63,7 +63,7 @@ export async function getChatModelInfo(
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
,
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment