@titaui/pc 1.10.82-beta.5 → 1.10.82-beta.6
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/.husky/pre-commit
CHANGED
|
@@ -99,15 +99,31 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
99
99
|
if (isWx) {
|
|
100
100
|
//有群了,判断没在群就先进群再打开群
|
|
101
101
|
if (chatId !== null && chatId !== 'chatId') {
|
|
102
|
-
wx.invoke(
|
|
103
|
-
|
|
102
|
+
// wx.invoke(
|
|
103
|
+
// 'openExistedChatWithMsg',
|
|
104
|
+
// {
|
|
105
|
+
// chatId: chatId,
|
|
106
|
+
// },
|
|
107
|
+
// function (res) {
|
|
108
|
+
// if (
|
|
109
|
+
// res.err_msg === 'openExistedChatWithMsg:fail_fail_Invalid_chatId'
|
|
110
|
+
// ) {
|
|
111
|
+
// wx.invoke(
|
|
112
|
+
// 'updateEnterpriseChat',
|
|
113
|
+
// {
|
|
114
|
+
// chatId: chatId,
|
|
115
|
+
// userIdsToAdd: loginUserOpenId,
|
|
116
|
+
// },
|
|
117
|
+
// )
|
|
118
|
+
// }
|
|
119
|
+
// },
|
|
120
|
+
// )
|
|
121
|
+
wx.invoke('updateEnterpriseChat', {
|
|
122
|
+
chatId: chatId,
|
|
123
|
+
userIdsToAdd: loginUserOpenId
|
|
104
124
|
}, function (res) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
chatId: chatId,
|
|
108
|
-
userIdsToAdd: loginUserOpenId
|
|
109
|
-
});
|
|
110
|
-
}
|
|
125
|
+
console.log(res);
|
|
126
|
+
console.log(res.err_msg);
|
|
111
127
|
});
|
|
112
128
|
} else {
|
|
113
129
|
setCreateWechatVisible(true);
|