浏览代码

add datanum

18339543638 3 年之前
父节点
当前提交
46e71bbde0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nb-service/app-doctor/src/main/java/com/nb/app/doctor/auth/AppDoctorAuthGranter.java

+ 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;
     }
 }