From d18238dbabb2de0add6c49c8212949226a6bf9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com> Date: Tue, 14 Jun 2022 16:14:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/system/controller/admin/auth/AuthController.java | 2 +- .../yudao/module/system/service/CpUser/CpUserServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);