-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] #165 暂时只用文本展示 - [x] 代码提交 @Daydaylw3 - [x] 文档增加说明 - [x] #159 - [x] 增加有条件开启是否转发自己消息 - [x] 消息增加标识自己 - [x] 设备上自己发送消息上报recvd-api - [x] 通过推消息api自己发送的消息上报recvd-api - [x] #140 - [x] 系统消息单独定义类型 - [x] 根据特定的错误标识,提前触发logout 事件,并且屏蔽上报请求 - [x] 完善readme - [x] #160 - [x] 尝试根据wechaty的通用错误手动触发 logout 事件,并且登出当前账号 - [x] 版本部署测试环境,观测掉线事件中 - [x] 优化代码,确保登出事件只触发一次
- Loading branch information
Showing
29 changed files
with
590 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx -y commitlint --edit "$1" | ||
npx commitlint --edit "$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx -y lint-staged | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ | |
"dotenv": "^16.3.1", | ||
"file-box": "1.4.15", | ||
"form-data": "^4.0.0", | ||
"gerror": "^1.0.16", | ||
"hono": "^3.11.11", | ||
"log4js": "^6.9.1", | ||
"mime": "^3.0.0", | ||
|
@@ -70,7 +71,9 @@ | |
}, | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]", | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/cjs/src/puppet-wechat4u.js b/dist/cjs/src/puppet-wechat4u.js | ||
index 68a52e6eb60c6efa0436984ef4399b1cf38d03af..6d1ae5aa166f61c288b66ea9a8e0273777d22687 100644 | ||
--- a/dist/cjs/src/puppet-wechat4u.js | ||
+++ b/dist/cjs/src/puppet-wechat4u.js | ||
@@ -353,6 +353,8 @@ class PuppetWechat4u extends PUPPET.Puppet { | ||
if (!this.getContactInterval) { | ||
this.getContactsInfo(); | ||
this.getContactInterval = setInterval(() => { | ||
+ //fix: 修复登出了还一直请求 | ||
+ this.isLoggedIn && | ||
this.getContactsInfo(); | ||
}, 2000); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/cjs/src/mixins/login-mixin.js b/dist/cjs/src/mixins/login-mixin.js | ||
index 01c9a9caea23816ebdd36398bb2cd1f4f0e85559..d273c203e0d41262559cc3c85543485b4affb4ea 100644 | ||
--- a/dist/cjs/src/mixins/login-mixin.js | ||
+++ b/dist/cjs/src/mixins/login-mixin.js | ||
@@ -110,6 +110,8 @@ const loginMixin = (mixinBase) => { | ||
this.__currentUserId = undefined; | ||
resolve(); | ||
})); | ||
+ // bugfix: 修复wechat4u并未真正登出的问题 | ||
+ this.wechat4u?.emit('logout'); | ||
} | ||
/** | ||
* @deprecated use `currentUserId` instead. (will be removed in v2.0) |
Oops, something went wrong.