2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-06-27 12:42:45 +08:00

代码调整

This commit is contained in:
Allen 2019-09-08 20:50:18 +08:00
parent 28d49bbb84
commit 953d66e1aa
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -23,7 +23,7 @@ public interface ExitEventHandler {
*
* @param wechat 微信客户端
*/
void handleErrorExitEvent(Wechat wechat);
void handleErrorExitEvent(Wechat wechat, Throwable t);
/**
* 针对远程人为导致的退出事件