Skip to content

Commit 300b5e9

Browse files
author
heavyrian2012
committed
升级im sdk。获取token打印日志
1 parent 2a10da6 commit 300b5e9

File tree

4 files changed

+3
-1
lines changed

4 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2424
<java.version>1.8</java.version>
2525
<log4j2.version>2.17.2</log4j2.version>
26-
<wfc.sdk.version>1.3.5</wfc.sdk.version>
26+
<wfc.sdk.version>1.3.6</wfc.sdk.version>
2727
</properties>
2828

2929
<dependencies>
Binary file not shown.
Binary file not shown.

src/main/java/cn/wildfirechat/app/ServiceImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,8 @@ private RestResult onLoginSuccess(HttpServletResponse httpResponse, String mobil
584584
if (tokenResult.getErrorCode() != ErrorCode.ERROR_CODE_SUCCESS) {
585585
LOG.error("Get user token failure {}", tokenResult.code);
586586
return RestResult.error(RestResult.RestCode.ERROR_SERVER_ERROR);
587+
} else {
588+
LOG.info("Get token success, userId: {}, server label: {}", user.getUserId(), tokenResult.getResult().getServerLabel());
587589
}
588590

589591
subject.getSession().setAttribute("userId", user.getUserId());

0 commit comments

Comments
 (0)