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
3d4dc045
authored
Jul 12, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改sdk注入
parent
284f5a4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
model/index.ts
xim/index.ts
model/index.ts
View file @
3d4dc045
...
...
@@ -42,17 +42,12 @@ export interface ChatOption {
* 长链接chat sdk地址
*/
webSocketUri
:
string
sdk
:
UniplatSdk
sdk
:
()
=>
UniplatSdk
orgId
:
()
=>
string
|
number
logger
?:
ChatServiceLogger
}
export
interface
ChatServiceLogger
{
...
...
xim/index.ts
View file @
3d4dc045
...
...
@@ -5,7 +5,7 @@ import { EmojiService } from "../service/emoji"
import
tokenManager
from
"./token"
import
type
{
UniplatSdk
}
from
"uniplat-sdk"
class
Chat
{
private
_sdk
:
UniplatSdk
private
_sdk
:
()
=>
UniplatSdk
private
_orgId
:
()
=>
string
|
number
=
()
=>
"0"
private
token
!
:
TokenStringGetter
...
...
@@ -40,7 +40,7 @@ class Chat {
}
public
getSdk
=
()
=>
{
return
this
.
_sdk
return
this
.
_sdk
()
}
public
getOrgId
=
()
=>
{
...
...
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