wx2tg-puppet 2.2.3 → 2.2.4
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 +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -462,6 +462,7 @@ class WxBot extends events_1.EventEmitter {
|
|
|
462
462
|
if (data.Code !== 0) {
|
|
463
463
|
// Code不为0,增加失败计数
|
|
464
464
|
this.syncFailureCount++;
|
|
465
|
+
yield new Promise(resolve => setTimeout(resolve, 2000));
|
|
465
466
|
if (this.syncFailureCount >= 10) {
|
|
466
467
|
// 连续失败10次,退出登录
|
|
467
468
|
this.syncFailureCount = 0; // 重置计数器
|