重构版功能实现

This commit is contained in:
tiansh
2021-10-26 18:20:08 +08:00
parent 0bb09732a5
commit 29b8575560
21 changed files with 485 additions and 241 deletions
@@ -172,6 +172,7 @@ public class IndexController {
User u = (User) subject.getPrincipal();
final JSONObject jsonObject = new JSONObject();
jsonObject.put("RoleLevel",u.getLevel()==2?"admin":"user");
jsonObject.put("userName",u.getUsername());
msg.setCode("200");
msg.setData(jsonObject);
} catch (Exception e) {