wechaty-web-panel 1.2.4 → 1.2.5

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 CHANGED
@@ -1,4 +1,8 @@
1
1
  ## 更新日志
2
+ ### V1.2.5(2022-11-30)
3
+
4
+ 1、修复回调事件带参
5
+
2
6
  ### V1.1.21(2022-10-31)
3
7
 
4
8
  1、添加群中关键词触发是否需要@功能
@@ -6,7 +6,7 @@ exports.packageJson = void 0;
6
6
  */
7
7
  exports.packageJson = {
8
8
  "name": "wechaty-web-panel",
9
- "version": "1.2.4",
9
+ "version": "1.2.5",
10
10
  "description": "",
11
11
  "exports": {
12
12
  ".": {
@@ -166,7 +166,9 @@ async function callbackEvent({ that, msg, name, id, config, room, isMention }) {
166
166
  item.moreData &&
167
167
  item.moreData.length &&
168
168
  item.moreData.forEach((mItem) => {
169
- data[mItem.key] = data[mItem.value];
169
+ if (mItem.key !== 'uid' && mItem.key !== 'word') {
170
+ data[mItem.key] = mItem.value;
171
+ }
170
172
  });
171
173
  if (item.type === 100) {
172
174
  let res = await superagent_js_1.service.post(item.customUrl, data);
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const packageJson = {
5
5
  "name": "wechaty-web-panel",
6
- "version": "1.2.4",
6
+ "version": "1.2.5",
7
7
  "description": "",
8
8
  "exports": {
9
9
  ".": {
@@ -155,7 +155,9 @@ async function callbackEvent({ that, msg, name, id, config, room, isMention }) {
155
155
  item.moreData &&
156
156
  item.moreData.length &&
157
157
  item.moreData.forEach((mItem) => {
158
- data[mItem.key] = data[mItem.value];
158
+ if (mItem.key !== 'uid' && mItem.key !== 'word') {
159
+ data[mItem.key] = mItem.value;
160
+ }
159
161
  });
160
162
  if (item.type === 100) {
161
163
  let res = await service.post(item.customUrl, data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechaty-web-panel",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {