mdm-im-v3 2.1.0 → 2.1.2
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/CHANGELOG.md +14 -0
- package/dist/{FilePreview-dpnc9m3Z.js → FilePreview-Cz0KMA_m.js} +2 -2
- package/dist/core.es.js +2 -2
- package/dist/{index-CsaYx_7b.js → index-C8koozDu.js} +2 -2
- package/dist/{index-CNxeqkio.js → index-GiaKeCU7.js} +47 -47
- package/dist/{index-D5S79LNp.js → index-P9_HILzo.js} +599 -319
- package/dist/index.es.js +1 -1
- package/dist/style/index.css +1 -1
- package/dist-h5/{ChatHistoryH5-BhrGF5WR.js → ChatHistoryH5-CKDqKPl-.js} +2 -2
- package/dist-h5/{ChatPageH5-B3azJu7O.js → ChatPageH5-FXZxtcQr.js} +3 -3
- package/dist-h5/{ChatSettingsH5-CFr9Bn69.js → ChatSettingsH5-PackrlPt.js} +1 -1
- package/dist-h5/{CreateGroupH5-a16jkObH.js → CreateGroupH5-CO_ZH36_.js} +2 -2
- package/dist-h5/{GroupAnnouncementH5-B-Qfzoy2.js → GroupAnnouncementH5-yUDR5kYW.js} +1 -1
- package/dist-h5/{GroupInfoDialogH5-BHLKs62Z.js → GroupInfoDialogH5-BRk-_mEn.js} +1 -1
- package/dist-h5/{GroupMembersH5-D_f1RFjO.js → GroupMembersH5-BVHUF2mG.js} +1 -1
- package/dist-h5/{GroupNoticeH5-46ZjBe92.js → GroupNoticeH5-KA-L2h9r.js} +1 -1
- package/dist-h5/{MemberDetailH5-B7nlr8ZT.js → MemberDetailH5-BfAE0nx-.js} +2 -2
- package/dist-h5/{SearchPageH5-hYxNItvz.js → SearchPageH5-B6B_U4hW.js} +2 -2
- package/dist-h5/{SelectMembersH5-DQIfX_w4.js → SelectMembersH5-CrPoBnYp.js} +2 -2
- package/dist-h5/{imChat-Bfl2JS8Q.js → imChat-pGlpr8Vj.js} +40 -7
- package/dist-h5/index.es.js +2 -2
- package/dist-h5/{indexH5-DAnvVyZ1.js → indexH5-CCvF1MV7.js} +413 -128
- package/dist-h5/{indexH5-CUQe-Ize.js → indexH5-sKvS7t3k.js} +7 -3
- package/package.json +72 -71
- package/dist-h5/request-CK8gkCRf.js +0 -44
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject, computed, ref, reactive, nextTick, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, Fragment, renderList, createBlock, createCommentVNode, createElementVNode, toDisplayString, withModifiers, normalizeStyle } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Tabs, Tab, Search, List, Image, Icon, Empty, Popup, ActionSheet, showImagePreview, showToast } from "vant";
|
|
4
|
-
import { u as useChatStore, I as IM_CVS_TYPE, t as IM_MSG_TYPE, L as debounce, v as useDate, n as handleUrl, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, q as formatFileSize, r as handleLinks, X as downloadFileByBlob, U as copyToClipboard } from "./indexH5-
|
|
5
|
-
import { c as searchChatLogs } from "./imChat-
|
|
4
|
+
import { u as useChatStore, I as IM_CVS_TYPE, t as IM_MSG_TYPE, L as debounce, v as useDate, n as handleUrl, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, q as formatFileSize, r as handleLinks, X as downloadFileByBlob, U as copyToClipboard } from "./indexH5-CCvF1MV7.js";
|
|
5
|
+
import { c as searchChatLogs } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
7
7
|
import { a as fileWordIcon, b as filePdfIcon, c as fileExcelIcon, d as fileVideoIcon, e as fileMusicIcon, f as fileIcon } from "./file_excel_icon-dlT1dWlt.js";
|
|
8
8
|
import { e as emptyImage } from "./empty_notice-D1FNXIRD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref, computed, openBlock, createElementBlock, Fragment, createVNode, unref, normalizeClass, withCtx, createElementVNode, toDisplayString, withModifiers, createTextVNode, inject, normalizeStyle, createCommentVNode, renderList, watch, nextTick, onMounted, onBeforeUnmount, createBlock, withDirectives, vShow, vModelText, resolveComponent } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { NavBar, Icon, ActionSheet, Loading, Checkbox, Popup, Empty, Button, showToast, showImagePreview, showDialog, Overlay, Search, List } from "vant";
|
|
4
|
-
import { o as isNoticeAgentConversation, l as IM_LOGIN_PLATFORM, q as formatFileSize, r as handleLinks, t as IM_MSG_TYPE, u as useChatStore, I as IM_CVS_TYPE, v as useDate, c as cloneDeep, i as isDefaultAvatar, n as handleUrl, a as getAvatarBg, b as getAvatarText, w as isBurnMessage, x as formatBurnRemain, y as isBurned, z as getJsonDetail, A as useBurnAfterReading, j as useMsgList, B as dedupeMessages, C as getDefaultExportFromCjs, D as getMediaDuration, E as getReplyDetail, F as IM_FONT_FAMILY, G as IM_FONT_SIZE, H as IM_FONT_STYLE, f as useUsers, h as useConversations, m as mittBus, g as getGroupAvatarBg, J as IM_GROUP_STATUS, d as getConversationBurnSetting, p as preserveBurnInEx, K as uuidv4 } from "./indexH5-
|
|
5
|
-
import { u as uploadFiles } from "./imChat-
|
|
4
|
+
import { o as isNoticeAgentConversation, l as IM_LOGIN_PLATFORM, q as formatFileSize, r as handleLinks, t as IM_MSG_TYPE, u as useChatStore, I as IM_CVS_TYPE, v as useDate, c as cloneDeep, i as isDefaultAvatar, n as handleUrl, a as getAvatarBg, b as getAvatarText, w as isBurnMessage, x as formatBurnRemain, y as isBurned, z as getJsonDetail, A as useBurnAfterReading, j as useMsgList, B as dedupeMessages, C as getDefaultExportFromCjs, D as getMediaDuration, E as getReplyDetail, F as IM_FONT_FAMILY, G as IM_FONT_SIZE, H as IM_FONT_STYLE, f as useUsers, h as useConversations, m as mittBus, g as getGroupAvatarBg, J as IM_GROUP_STATUS, d as getConversationBurnSetting, p as preserveBurnInEx, K as uuidv4 } from "./indexH5-CCvF1MV7.js";
|
|
5
|
+
import { u as uploadFiles } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
import { ElMessage } from "element-plus";
|
|
8
8
|
import axios from "axios";
|
|
9
9
|
import { f as fileIcon, a as fileWordIcon, b as filePdfIcon, c as fileExcelIcon, d as fileVideoIcon, e as fileMusicIcon } from "./file_excel_icon-dlT1dWlt.js";
|
|
10
10
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
11
|
-
import { J as JoinGroupDialogH5, G as GroupInfoDialogH5 } from "./GroupInfoDialogH5-
|
|
11
|
+
import { J as JoinGroupDialogH5, G as GroupInfoDialogH5 } from "./GroupInfoDialogH5-BRk-_mEn.js";
|
|
12
12
|
const uploadQueue = ref({});
|
|
13
13
|
const useUploadQueue = () => {
|
|
14
14
|
const addPendingMessage = (conversationID, message) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject, computed, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createBlock, createTextVNode, Fragment, createElementVNode, toDisplayString, createCommentVNode, withModifiers, renderList, normalizeStyle } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Icon, Loading, Empty, Button, Cell, Image, Switch, ActionSheet, Dialog, Field, Popup, Checkbox, Radio, showToast, showConfirmDialog } from "vant";
|
|
4
|
-
import { u as useChatStore, h as useConversations, I as IM_CVS_TYPE, o as isNoticeAgentConversation, O as IM_GROUP_MEMBER_ROLE, R as BURN_DEFAULT, S as BURN_PRESETS, T as formatBurnDuration, i as isDefaultAvatar, g as getGroupAvatarBg, a as getAvatarBg, b as getAvatarText, n as handleUrl, U as copyToClipboard, m as mittBus, V as clampBurnDuration, W as buildBurnEx, d as getConversationBurnSetting, J as IM_GROUP_STATUS, c as cloneDeep } from "./indexH5-
|
|
4
|
+
import { u as useChatStore, h as useConversations, I as IM_CVS_TYPE, o as isNoticeAgentConversation, O as IM_GROUP_MEMBER_ROLE, R as BURN_DEFAULT, S as BURN_PRESETS, T as formatBurnDuration, i as isDefaultAvatar, g as getGroupAvatarBg, a as getAvatarBg, b as getAvatarText, n as handleUrl, U as copyToClipboard, m as mittBus, V as clampBurnDuration, W as buildBurnEx, d as getConversationBurnSetting, J as IM_GROUP_STATUS, c as cloneDeep } from "./indexH5-CCvF1MV7.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
6
6
|
const _hoisted_1 = {
|
|
7
7
|
key: 2,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, createVNode, unref, createElementVNode, withCtx, createBlock, Fragment, renderList, normalizeClass, normalizeStyle, toDisplayString, withModifiers, createCommentVNode, createTextVNode } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Field, Cell, Loading, Image, Icon, Button, ActionSheet, Empty, showToast } from "vant";
|
|
4
|
-
import { u as useChatStore, f as useUsers, n as handleUrl, m as mittBus, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, I as IM_CVS_TYPE, O as IM_GROUP_MEMBER_ROLE, P as GROUP_VERIFICATION_TYPE, J as IM_GROUP_STATUS, Q as IM_GROUP_TYPE } from "./indexH5-
|
|
5
|
-
import { u as uploadFiles } from "./imChat-
|
|
4
|
+
import { u as useChatStore, f as useUsers, n as handleUrl, m as mittBus, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, I as IM_CVS_TYPE, O as IM_GROUP_MEMBER_ROLE, P as GROUP_VERIFICATION_TYPE, J as IM_GROUP_STATUS, Q as IM_GROUP_TYPE } from "./indexH5-CCvF1MV7.js";
|
|
5
|
+
import { u as uploadFiles } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
8
8
|
const _hoisted_1 = { class: "create-group-h5" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject, computed, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, createBlock, withCtx, createTextVNode, Fragment, createCommentVNode, createElementVNode, normalizeStyle, toDisplayString } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { showToast, NavBar, Loading, Empty, Field, Button, showDialog } from "vant";
|
|
4
|
-
import { u as useChatStore, v as useDate, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl, O as IM_GROUP_MEMBER_ROLE } from "./indexH5-
|
|
4
|
+
import { u as useChatStore, v as useDate, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl, O as IM_GROUP_MEMBER_ROLE } from "./indexH5-CCvF1MV7.js";
|
|
5
5
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
6
6
|
import { e as emptyImage } from "./empty_notice-D1FNXIRD.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, ref, openBlock, createBlock, unref, withCtx, createElementVNode, createVNode, createElementBlock, Fragment, renderList, normalizeClass, withModifiers, createTextVNode, toDisplayString, normalizeStyle, createCommentVNode } from "vue";
|
|
2
|
-
import { u as useChatStore, L as debounce, i as isDefaultAvatar, g as getGroupAvatarBg, n as handleUrl, M as handleDateUtil, a as getAvatarBg, b as getAvatarText, N as GROUP_JOIN_SOURCE } from "./indexH5-
|
|
2
|
+
import { u as useChatStore, L as debounce, i as isDefaultAvatar, g as getGroupAvatarBg, n as handleUrl, M as handleDateUtil, a as getAvatarBg, b as getAvatarText, N as GROUP_JOIN_SOURCE } from "./indexH5-CCvF1MV7.js";
|
|
3
3
|
import { Popup, Icon, Search, Loading, Empty, CellGroup, Cell, Radio, Button, Field, showToast } from "vant";
|
|
4
4
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject, computed, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, createElementVNode, createBlock, withCtx, createTextVNode, Fragment, renderList, withModifiers, createCommentVNode, toDisplayString, normalizeStyle } from "vue";
|
|
2
2
|
import { useRoute, useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Search, Loading, Empty, Cell, Tag, Button, ActionSheet, showDialog, showToast } from "vant";
|
|
4
|
-
import { u as useChatStore, O as IM_GROUP_MEMBER_ROLE, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, J as IM_GROUP_STATUS, c as cloneDeep, n as handleUrl } from "./indexH5-
|
|
4
|
+
import { u as useChatStore, O as IM_GROUP_MEMBER_ROLE, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, J as IM_GROUP_STATUS, c as cloneDeep, n as handleUrl } from "./indexH5-CCvF1MV7.js";
|
|
5
5
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const _hoisted_1 = { class: "members-content" };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, inject, ref, onMounted, openBlock, createElementBlock, normalizeClass, createVNode, unref, withCtx, createElementVNode, createBlock, createCommentVNode, Fragment, renderList, createTextVNode, toDisplayString, normalizeStyle } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Icon, Tabs, Tab, Loading, Empty, Cell, Button, showToast } from "vant";
|
|
4
|
-
import { u as useChatStore, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl, g as getGroupAvatarBg, M as handleDateUtil } from "./indexH5-
|
|
4
|
+
import { u as useChatStore, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl, g as getGroupAvatarBg, M as handleDateUtil } from "./indexH5-CCvF1MV7.js";
|
|
5
5
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const _hoisted_1 = { class: "notice-list" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, inject, ref, onMounted, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref, withCtx, createBlock, normalizeStyle, toDisplayString, createCommentVNode, createTextVNode, Fragment, withModifiers } from "vue";
|
|
2
2
|
import { useRouter, useRoute } from "vue-router";
|
|
3
3
|
import { showToast, NavBar, Icon, Image, Loading, Empty, Button, CellGroup, Cell } from "vant";
|
|
4
|
-
import { u as useChatStore, f as useUsers, n as handleUrl, i as isDefaultAvatar, h as useConversations, a as getAvatarBg, b as getAvatarText, I as IM_CVS_TYPE } from "./indexH5-
|
|
5
|
-
import { g as getUserInfoByLoginCode, u as uploadFiles } from "./imChat-
|
|
4
|
+
import { u as useChatStore, f as useUsers, n as handleUrl, i as isDefaultAvatar, h as useConversations, a as getAvatarBg, b as getAvatarText, I as IM_CVS_TYPE } from "./indexH5-CCvF1MV7.js";
|
|
5
|
+
import { g as getUserInfoByLoginCode, u as uploadFiles } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
7
7
|
const _hoisted_1 = { class: "detail-header" };
|
|
8
8
|
const _hoisted_2 = { class: "detail-avatar" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, createBlock, Fragment, renderList, normalizeStyle, toDisplayString, createTextVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
3
|
import { NavBar, Search, Loading, CellGroup, Cell, Tag, Empty } from "vant";
|
|
4
|
-
import { u as useChatStore, h as useConversations, L as debounce, I as IM_CVS_TYPE, g as getGroupAvatarBg, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl } from "./indexH5-
|
|
5
|
-
import { s as searchOpenIMUsers } from "./imChat-
|
|
4
|
+
import { u as useChatStore, h as useConversations, L as debounce, I as IM_CVS_TYPE, g as getGroupAvatarBg, i as isDefaultAvatar, a as getAvatarBg, b as getAvatarText, n as handleUrl } from "./indexH5-CCvF1MV7.js";
|
|
5
|
+
import { s as searchOpenIMUsers } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
7
7
|
const _hoisted_1 = { class: "search-page-h5" };
|
|
8
8
|
const _hoisted_2 = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { computed, ref, onMounted, openBlock, createElementBlock, createVNode, unref, createBlock, createCommentVNode, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, withCtx, createSlots, withModifiers, normalizeStyle, createTextVNode } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
|
-
import { u as useChatStore, L as debounce, i as isDefaultAvatar, n as handleUrl, a as getAvatarBg, b as getAvatarText } from "./indexH5-
|
|
3
|
+
import { u as useChatStore, L as debounce, i as isDefaultAvatar, n as handleUrl, a as getAvatarBg, b as getAvatarText } from "./indexH5-CCvF1MV7.js";
|
|
4
4
|
import { NavBar, Search, Icon, CellGroup, Cell, Loading, Empty, List, Checkbox, Button, showToast } from "vant";
|
|
5
|
-
import { q as queryUserAddressBook, a as queryUsersByDept, b as searchUsersByDept } from "./imChat-
|
|
5
|
+
import { q as queryUserAddressBook, a as queryUsersByDept, b as searchUsersByDept } from "./imChat-pGlpr8Vj.js";
|
|
6
6
|
import { d as defaultAvatar } from "./default_avatar-BE2kit_X.js";
|
|
7
7
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-1tPrXgE0.js";
|
|
8
8
|
const _hoisted_1 = { class: "select-members-h5" };
|
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
import { ElMessage } from "element-plus";
|
|
2
|
-
import {
|
|
2
|
+
import { u as useChatStore, Y as imSessionScope, Z as IMSessionChangedError, _ as requestInstance } from "./indexH5-CCvF1MV7.js";
|
|
3
|
+
async function withTenantDirectory(commonUrl, request) {
|
|
4
|
+
var _a, _b, _c;
|
|
5
|
+
const store = useChatStore();
|
|
6
|
+
const scope = imSessionScope(store);
|
|
7
|
+
const result = await request;
|
|
8
|
+
if (imSessionScope(store) !== scope) throw new IMSessionChangedError();
|
|
9
|
+
if (Number(store.imIdentityVersion) !== 2 || ((_a = result == null ? void 0 : result.data) == null ? void 0 : _a.code) !== 200) return result;
|
|
10
|
+
const contacts = [];
|
|
11
|
+
const walk = (value) => {
|
|
12
|
+
if (!value || typeof value !== "object") return;
|
|
13
|
+
if (!Array.isArray(value) && typeof value.loginCode === "string" && value.loginCode) contacts.push(value);
|
|
14
|
+
for (const child of Object.values(value)) if (typeof child === "object") walk(child);
|
|
15
|
+
};
|
|
16
|
+
walk(result.data.data);
|
|
17
|
+
const refs = [...new Set(contacts.map((item) => item.loginCode))];
|
|
18
|
+
const mapped = /* @__PURE__ */ new Map();
|
|
19
|
+
for (let offset = 0; offset < refs.length; offset += 100) {
|
|
20
|
+
const reply = await requestInstance.post(`${commonUrl}/api/v1/openim/resolveTargets`, { loginCodes: refs.slice(offset, offset + 100) });
|
|
21
|
+
if (imSessionScope(store) !== scope) throw new IMSessionChangedError();
|
|
22
|
+
if (((_b = reply == null ? void 0 : reply.data) == null ? void 0 : _b.code) !== 200) throw new Error(((_c = reply == null ? void 0 : reply.data) == null ? void 0 : _c.msg) || "人员 IM 身份解析失败");
|
|
23
|
+
for (const item of reply.data.data.targets || []) mapped.set(item.reference, item.imUserID);
|
|
24
|
+
}
|
|
25
|
+
for (const item of contacts) {
|
|
26
|
+
const id = mapped.get(item.loginCode);
|
|
27
|
+
if (!id) throw new Error("人员 IM 身份缺失");
|
|
28
|
+
item.businessLoginCode = item.loginCode;
|
|
29
|
+
item.businessUserID = item.userID;
|
|
30
|
+
item.imUserID = id;
|
|
31
|
+
item.loginCode = id;
|
|
32
|
+
item.userID = id;
|
|
33
|
+
}
|
|
34
|
+
return result;
|
|
35
|
+
}
|
|
3
36
|
const CHUNK_MAX_SIZE = 20 * 1024 * 1024;
|
|
4
37
|
const TARGET_CHUNK_SIZE = 20 * 1024 * 1024;
|
|
5
38
|
const LARGE_FILE_THRESHOLD = 20 * 1024 * 1024;
|
|
@@ -724,21 +757,21 @@ const searchChatLogs = (commonUrl, params) => {
|
|
|
724
757
|
return requestInstance.post(`${commonUrl}/api/v1/openim/iMSearchMsg2`, params);
|
|
725
758
|
};
|
|
726
759
|
const getUserInfoByLoginCode = (commonUrl, loginCode) => {
|
|
727
|
-
return requestInstance.post(`${commonUrl}/api/v1/openim/getOpenIMUserInfoByLoginCode`, {
|
|
760
|
+
return withTenantDirectory(commonUrl, requestInstance.post(`${commonUrl}/api/v1/openim/getOpenIMUserInfoByLoginCode`, {
|
|
728
761
|
loginCode
|
|
729
|
-
});
|
|
762
|
+
}));
|
|
730
763
|
};
|
|
731
764
|
const searchOpenIMUsers = (commonUrl, params) => {
|
|
732
|
-
return requestInstance.post(`${commonUrl}/api/v1/openim/searchOpenIMUsers`, params);
|
|
765
|
+
return withTenantDirectory(commonUrl, requestInstance.post(`${commonUrl}/api/v1/openim/searchOpenIMUsers`, params));
|
|
733
766
|
};
|
|
734
767
|
const queryUserAddressBook = (commonUrl, params = {}) => {
|
|
735
|
-
return requestInstance.post(`${commonUrl}/api/v1/communication/queryUserAddressBook`, params);
|
|
768
|
+
return withTenantDirectory(commonUrl, requestInstance.post(`${commonUrl}/api/v1/communication/queryUserAddressBook`, params));
|
|
736
769
|
};
|
|
737
770
|
const queryUsersByDept = (commonUrl, params = {}) => {
|
|
738
|
-
return requestInstance.post(`${commonUrl}/api/v1/communication/queryUsersByDept`, params);
|
|
771
|
+
return withTenantDirectory(commonUrl, requestInstance.post(`${commonUrl}/api/v1/communication/queryUsersByDept`, params));
|
|
739
772
|
};
|
|
740
773
|
const searchUsersByDept = (commonUrl, params = {}) => {
|
|
741
|
-
return requestInstance.post(`${commonUrl}/api/v1/communication/searchUsersByDept`, params);
|
|
774
|
+
return withTenantDirectory(commonUrl, requestInstance.post(`${commonUrl}/api/v1/communication/searchUsersByDept`, params));
|
|
742
775
|
};
|
|
743
776
|
export {
|
|
744
777
|
queryUsersByDept as a,
|
package/dist-h5/index.es.js
CHANGED