@zjw-jszn/platform-imsdk 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -89,7 +89,9 @@ declare function getCustomerChatList(data: {
|
|
|
89
89
|
|
|
90
90
|
## 配置约束
|
|
91
91
|
|
|
92
|
-
- 可配置 shared 通用项:`api.baseURL`、`api.siteId`、`sound`、`auth` 等。
|
|
92
|
+
- 可配置 shared 通用项:`api.baseURL`、`api.resourceBaseURL`、`api.uploadURL`、`api.siteId`、`ws.url`、`ws.reconnectInterval`、`ws.heartbeatInterval`、`ws.maxReconnectAttempts`、`ws.connectTimeout`、`ws.traceEnabled`、`ws.protocol.action.*`、`sound`、`auth`、`chat.platformServicePhone` 等。
|
|
93
|
+
- 若未传 `ws.url`,SDK 会基于 `api.baseURL` 自动推导 WS 地址(`https -> wss`,`http -> ws`)。
|
|
94
|
+
- 调用 `getChatList` 且参数为 `friend_type=4` + `customeronly=1/true` 时,如未传 `phone`,会自动回落 `chat.platformServicePhone`。
|
|
93
95
|
- 外部传入 `runtimeApi.getChatConfig/closeSession/getCustomerChatList` 会被忽略(平台内置实现优先)。
|
|
94
96
|
- 已初始化后若尝试切换到门店模式,会抛错并提示刷新页面。
|
|
95
97
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zjw-jszn/platform-imsdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.10",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"registry": "https://registry.npmjs.org/"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@zjw-jszn/shared-imsdk": "1.0.
|
|
26
|
+
"@zjw-jszn/shared-imsdk": "1.0.10"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "~5.9.3",
|