@titaui/pc 1.16.82 → 1.16.83
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.
|
@@ -144,7 +144,13 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
144
144
|
if (isDingDing) {
|
|
145
145
|
//有群了,判断没在群就先进群再打开群
|
|
146
146
|
if (chatId !== null && chatId !== 'chatId') {
|
|
147
|
-
console.
|
|
147
|
+
console.table({
|
|
148
|
+
'coolAppCode': coolAppCode,
|
|
149
|
+
'clientId': suiteKey,
|
|
150
|
+
'corpId': corpId,
|
|
151
|
+
'openConversationList': [chatId],
|
|
152
|
+
'userIds': dingChatGroupMember
|
|
153
|
+
});
|
|
148
154
|
(0, _coolAppSdk.addMembers)({
|
|
149
155
|
context: {
|
|
150
156
|
coolAppCode: coolAppCode,
|
|
@@ -156,19 +162,18 @@ var DingdingBtn = function DingdingBtn(props) {
|
|
|
156
162
|
},
|
|
157
163
|
openConversationList: [chatId],
|
|
158
164
|
//要添加成员的的群ID
|
|
159
|
-
userIds:
|
|
165
|
+
userIds: dingChatGroupMember //需要入群的成员userId。
|
|
160
166
|
|
|
161
167
|
}).then(function (res) {
|
|
162
168
|
console.log(res, 'addMembers');
|
|
163
169
|
|
|
164
170
|
if (res.errorCode === '0') {
|
|
165
171
|
console.log("添加成功res" + JSON.stringify(res));
|
|
166
|
-
} else {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
+
} else {// if (userId === principalUser.userId) {
|
|
173
|
+
// setPrincipalUserModalVisible(true)
|
|
174
|
+
// } else {
|
|
175
|
+
// setMemberVisible(true)
|
|
176
|
+
// }
|
|
172
177
|
}
|
|
173
178
|
})["catch"](function (e) {
|
|
174
179
|
console.log('添加失败' + JSON.stringify(e));
|