@titaui/pc 1.10.83-beta.1 → 1.10.83-beta.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.
|
@@ -120,41 +120,43 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
120
120
|
chatId: chatId,
|
|
121
121
|
userIdsToAdd: loginUserOpenId
|
|
122
122
|
}, function (res) {
|
|
123
|
-
console.log("1.\u4EBA\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B2.\u4EBA\u4E0D\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B 3.\u7FA4\u89E3\u6563\u4E86\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F 4.mac\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F ".concat(res.err_msg));
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
123
|
+
console.log("1.\u4EBA\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B2.\u4EBA\u4E0D\u5728\u7FA4\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F\uFF1B 3.\u7FA4\u89E3\u6563\u4E86\uFF0C\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F 4.mac\u8C03\u7528\u52A0\u4EBA\u63A5\u53E3\u8FD4\u56DE\u4FE1\u606F ".concat(res.err_msg));
|
|
124
|
+
|
|
125
|
+
if (res.err_msg === 'updateEnterpriseChat:ok') {
|
|
126
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
127
|
+
chatId: chatId
|
|
128
|
+
}, function (res) {
|
|
129
|
+
if (res.err_msg === 'openExistedChatWithMsg:ok') {
|
|
130
|
+
console.log('打开群成功');
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
} else if (res.err_msg === 'updateEnterpriseChat:fail_unsupported chat') {
|
|
134
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
135
|
+
chatId: chatId
|
|
136
|
+
}, function (res) {
|
|
137
|
+
if (res.err_msg === 'openExistedChatWithMsg:ok') {
|
|
138
|
+
console.log('打开群成功');
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
} else if (res.err_msg === 'updateEnterpriseChat:permission denied') {
|
|
142
|
+
if (isMac) {
|
|
143
|
+
wx.invoke('openExistedChatWithMsg', {
|
|
144
|
+
chatId: chatId
|
|
145
|
+
}, function (res) {
|
|
146
|
+
if (res.err_msg === 'openExistedChatWithMsg:ok') {
|
|
147
|
+
console.log('打开群成功');
|
|
148
|
+
} else {
|
|
149
|
+
setMacWarnModalVisible(true);
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
} else {
|
|
154
|
+
if (loginUserOpenId === principalUser.userId) {
|
|
155
|
+
setPrincipalUserModalVisible(true);
|
|
156
|
+
} else {
|
|
157
|
+
setMemberVisible(true);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
158
160
|
});
|
|
159
161
|
} else {
|
|
160
162
|
setCreateWechatVisible(true);
|