Commit 8ba340f2 by shenjunjie

Merge branch 'feature' into 'release'

单账号登录限制再补充

See merge request !611
parents 13cf8d9d 33b8ae7b
...@@ -32,6 +32,11 @@ public class ExceptionCatch { ...@@ -32,6 +32,11 @@ public class ExceptionCatch {
public ResponseResult customException(CustomException customException) { public ResponseResult customException(CustomException customException) {
ResultCode resultCode = customException.getResultCode(); ResultCode resultCode = customException.getResultCode();
Exception exception = customException.getException(); Exception exception = customException.getException();
// 登录过期/异地登录log为info
if (1010 == resultCode.code() || 1011 == resultCode.code()){
log.info("登录信息:{}", customException.getErrorMessage(), customException);
return new ResponseResult(resultCode, Collections.EMPTY_LIST);
}
//记录日志 //记录日志
if (null == exception) { if (null == exception) {
log.error("catch exception-custom:{}", customException.getErrorMessage(), customException); log.error("catch exception-custom:{}", customException.getErrorMessage(), customException);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment