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.
Files changed (2) hide show
  1. package/dist/index.js +1 -0
  2. 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; // 重置计数器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx2tg-puppet",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [