Pu Zhibing
2025-02-28 173428adf09179860a3cb1a88f46378fd98473b2
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);
    }
}