2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-06-27 20:52: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) { if (i == 0) {
log.info("同步监听请求失败,正在重试..."); log.info("同步监听请求失败,正在重试...");
} else if (i > 0) { } else if (i > 0) {
log.info("第{}次重试失败" + i); log.info("第{}次重试失败", i);
} }
if (i >= time) { if (i >= time) {
@ -741,7 +741,7 @@ public class Wechat {
try { try {
switch (type) { switch (type) {
case ERROR_EXIT: case ERROR_EXIT:
handler.handleErrorExitEvent(wechat); handler.handleErrorExitEvent(wechat, t);
break; break;
case REMOTE_EXIT: case REMOTE_EXIT:
handler.handleRemoteExitEvent(wechat); handler.handleRemoteExitEvent(wechat);

View File

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