Browse Source

登录增加返回账号信息

4.0
zhangyulong 2 years ago
parent
commit
0591b28c6c
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/AuthService.java
  2. +1
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/LoginAckVO.java

+ 1
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/AuthService.java View File

@@ -88,6 +88,7 @@ public class AuthService {
loginAckVO.setToken(sessionManager.login(userSession));
loginAckVO.setUserLevel(user.getLevel() + "");
loginAckVO.setUserNicky(user.getNicky());
loginAckVO.setUserTel(user.getTel());
data.put("user", loginAckVO);
data.put("token", loginAckVO.getToken());
data.put("isOk", true);


+ 1
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/login/LoginAckVO.java View File

@@ -13,4 +13,5 @@ public class LoginAckVO {
private String token;
private String userLevel; //102100内部用户/102101外部用户/102102公众用户
private String userNicky;
private String userTel;
}

Loading…
Cancel
Save