|
|
@@ -45,6 +45,11 @@ public class AppDoctorUserAccountOperator implements IAccountOperator<DoctorUser
|
|
|
public UserInfoVO getUserInfo() {
|
|
|
UserInfoVO userInfoVO = new UserInfoVO();
|
|
|
AppDoctorUserEntity user = doctorUserService.getById(SecurityUtil.getStpLogic().getLoginIdAsString());
|
|
|
+ if(ObjectUtil.isNull(user)){
|
|
|
+ StpLogic stpLogic = SecurityUtil.getStpLogic();
|
|
|
+ stpLogic.logout();
|
|
|
+ stpLogic.checkLogin();
|
|
|
+ }
|
|
|
userInfoVO.setUserId(user.getId());
|
|
|
userInfoVO.setUsername(user.getUsername());
|
|
|
userInfoVO.setRealName(user.getRealName());
|