mirror of
https://gitee.com/hotlcc/wechat4j.git
synced 2025-06-27 12:42:45 +08:00
代码调整
This commit is contained in:
parent
28d49bbb84
commit
953d66e1aa
@ -692,7 +692,7 @@ public class Wechat {
|
||||
if (i == 0) {
|
||||
log.info("同步监听请求失败,正在重试...");
|
||||
} else if (i > 0) {
|
||||
log.info("第{}次重试失败" + i);
|
||||
log.info("第{}次重试失败", i);
|
||||
}
|
||||
|
||||
if (i >= time) {
|
||||
@ -741,7 +741,7 @@ public class Wechat {
|
||||
try {
|
||||
switch (type) {
|
||||
case ERROR_EXIT:
|
||||
handler.handleErrorExitEvent(wechat);
|
||||
handler.handleErrorExitEvent(wechat, t);
|
||||
break;
|
||||
case REMOTE_EXIT:
|
||||
handler.handleRemoteExitEvent(wechat);
|
||||
|
@ -23,7 +23,7 @@ public interface ExitEventHandler {
|
||||
*
|
||||
* @param wechat 微信客户端
|
||||
*/
|
||||
void handleErrorExitEvent(Wechat wechat);
|
||||
void handleErrorExitEvent(Wechat wechat, Throwable t);
|
||||
|
||||
/**
|
||||
* 针对远程人为导致的退出事件
|
||||
|
Loading…
x
Reference in New Issue
Block a user