guns-admin/src/main/java/com/stylefeng/guns/modular/api/ApiController.java
@@ -45,7 +45,7 @@ //获取数据库中的账号密码,准备比对 User user = userMapper.getByAccount(username); if(null == user){ throw new RuntimeException("无效的账号"); return new ErrorTip(500, "无效的账号!"); } String credentials = user.getPassword(); String salt = user.getSalt(); @@ -77,6 +77,11 @@ public Object test() { return SUCCESS_TIP; } public static void main(String[] args) { String s = ShiroKit.md5("96e79218965eb72c92a549dd5a330112", "8pgby"); System.err.println(s); } }