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.
- package/dist/index.js +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[
|
|
197
|
-
const qrLink = decodeURIComponent(match[
|
|
196
|
+
if (match && match[2]) {
|
|
197
|
+
const qrLink = decodeURIComponent(match[2]);
|
|
198
198
|
this.emit('scan', {
|
|
199
199
|
content: qrLink
|
|
200
200
|
});
|