wx2tg-puppet 2.2.2 → 2.2.3
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 +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -238,7 +238,6 @@ class WxBot extends events_1.EventEmitter {
|
|
|
238
238
|
return;
|
|
239
239
|
}
|
|
240
240
|
const statusResp = yield LoginApi_1.loginApi.LoginCheckQR(this.uuid);
|
|
241
|
-
console.log('CheckQR response:', statusResp.data);
|
|
242
241
|
const statusData = statusResp.data;
|
|
243
242
|
if (statusData.Success) {
|
|
244
243
|
if (statusData.Message === '登录成功') {
|
|
@@ -254,6 +253,12 @@ class WxBot extends events_1.EventEmitter {
|
|
|
254
253
|
else if (statusData.Message.includes('数据不存在') || statusData.Message.includes('未知的错误')) {
|
|
255
254
|
yield this.fetchAndShowQRCode();
|
|
256
255
|
}
|
|
256
|
+
else if (statusData.Message.includes('请提交验证码后登录')) {
|
|
257
|
+
yield this.login();
|
|
258
|
+
this.emit('loginFail', {
|
|
259
|
+
msg: statusData.Message
|
|
260
|
+
});
|
|
261
|
+
}
|
|
257
262
|
else {
|
|
258
263
|
console.log('登录失败:', (_a = statusData.Data.baseResponse) === null || _a === void 0 ? void 0 : _a.errMsg);
|
|
259
264
|
}
|