|
@@ -65,7 +65,7 @@ public class SaTokenConfigure {
|
|
|
.setError(e -> {
|
|
|
System.out.println("---------- 进入Sa-Token异常处理 -----------");
|
|
|
SaHolder.getResponse().setHeader("Content-Type", "application/json;charset=UTF-8");
|
|
|
- ResultData aj = null;
|
|
|
+ ResultData aj ;
|
|
|
if (e instanceof NotLoginException) { // 如果是未登录异常
|
|
|
NotLoginException ee = (NotLoginException) e;
|
|
|
aj = ResultData.error(ErrorCode.USER_NOT_LOGIN);
|