diff --git a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java index 7a23992d..5fcae9d5 100644 --- a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java +++ b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java @@ -120,7 +120,7 @@ public class AuthController { login.setRoleIds(adminAuthService.getUserRoleIds(login.getId())); String token = userSessionService.createUserSession(login, getClientIP(), getUserAgent()); - log.info("TOKEN:::{}",token); + log.info("{}:TOKEN:::{}",user.getUsername(),token); AuthLoginRespVO vo = AuthLoginRespVO.builder().token(token).user(cpuser).build(); return CommonResult.success(vo); } diff --git a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java index a5ff0a88..c343e0f5 100644 --- a/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java +++ b/yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/CpUser/CpUserServiceImpl.java @@ -110,7 +110,7 @@ public class CpUserServiceImpl extends ServiceImpl implem public void cpUserSync() throws WxErrorException { WxCpConfigStorage config = wxCpService.getWxCpConfigStorage(); List departList = wxCpService.getDepartmentService().list(null); - List userList = wxCpService.getUserService().listByDepartment(35L, true, 0); + List userList = wxCpService.getUserService().listByDepartment(1L, true, 0); List rs = CpUserConvert.INSTANCE.convertListFromWxApi(userList);