wx2tg-puppet 3.0.1 → 3.0.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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -193,8 +193,8 @@ class WxBot extends events_1.EventEmitter {
193
193
  const data = response.data;
194
194
  this.uuid = data.Data.Uuid;
195
195
  const match = data.Data.QrUrl.match(/[?&](url|data)=([^&]+)/);
196
- if (match && match[1]) {
197
- const qrLink = decodeURIComponent(match[1]);
196
+ if (match && match[2]) {
197
+ const qrLink = decodeURIComponent(match[2]);
198
198
  this.emit('scan', {
199
199
  content: qrLink
200
200
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx2tg-puppet",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [