18339543638 3 rokov pred
rodič
commit
46e71bbde0

+ 1 - 1
nb-service/app-doctor/src/main/java/com/nb/app/doctor/auth/AppDoctorAuthGranter.java

@@ -74,7 +74,7 @@ public class AppDoctorAuthGranter implements IAuthGranter {
         loginUser.setLoginType(StpTypeEnum.APP_DOCTOR.getText());
         fillUserAgentInfo(loginUser);
         // 设置用户信息
-        SecurityUtil.getStpLogic(StpTypeEnum.APP_DOCTOR.getText()).getTokenSessionByToken(loginUser.getToken()).set(LOGIN_USER_KEY,loginUser);
+        SecurityUtil.getStpLogic(StpTypeEnum.APP_DOCTOR.getText()).getTokenSessionByToken(loginUser.getToken(),true).set(LOGIN_USER_KEY,loginUser);
         return loginUser;
     }
 }