@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
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npm run lint-staged
4
+ # npm run lint-staged
@@ -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('openExistedChatWithMsg', {
103
- chatId: chatId
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
- if (res.err_msg === 'openExistedChatWithMsg:fail_fail_Invalid_chatId') {
106
- wx.invoke('updateEnterpriseChat', {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.10.82-beta.5",
3
+ "version": "1.10.82-beta.6",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",