mirror of
https://github.com/Hello-hao/Tbed.git
synced 2024-04-21 12:32:10 +00:00
重构版功能实现
This commit is contained in:
@@ -186,6 +186,7 @@ public class UserController {
|
||||
msg.setInfo("登录成功");
|
||||
jsonObject.put("token",token);
|
||||
jsonObject.put("RoleLevel",user.getLevel()==2?"admin":"user");
|
||||
jsonObject.put("userName",user.getUsername());
|
||||
msg.setData(jsonObject);
|
||||
return msg;
|
||||
} catch (UnknownAccountException e) {
|
||||
|
||||
Reference in New Issue
Block a user