智慧保安后台管理-外网项目备份
zhongrj
2024-11-11 ba3472d4a1c5fff5a57ecb8810d9faece9cd1e2c
src/main/java/org/springblade/modules/auth/granter/PasswordTokenGranter.java
@@ -63,6 +63,9 @@
            userInfo = userService.userInfo(tenantId, username, DigestUtil.hex(password), UserEnum.WEB);
         } else if (userType.equals(UserEnum.APP.getName())) {
            userInfo = userService.userInfo(tenantId, username, DigestUtil.hex(password), UserEnum.APP);
         }else if (userType.equals(UserEnum.WX.getName())){
            // 微信小程序登录
            userInfo = userService.wxUserInfo(tenantId,username, DigestUtil.hex(password), UserEnum.WEB);
         } else {
            userInfo = userService.userInfo(tenantId, username, DigestUtil.hex(password), UserEnum.OTHER);
         }