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) {
|
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);
|
||||||
|
@ -23,7 +23,7 @@ public interface ExitEventHandler {
|
|||||||
*
|
*
|
||||||
* @param wechat 微信客户端
|
* @param wechat 微信客户端
|
||||||
*/
|
*/
|
||||||
void handleErrorExitEvent(Wechat wechat);
|
void handleErrorExitEvent(Wechat wechat, Throwable t);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 针对远程人为导致的退出事件
|
* 针对远程人为导致的退出事件
|
||||||
|
Loading…
x
Reference in New Issue
Block a user