From b37e8acb284e3ca828b97c6efa5e07c36143f6a9 Mon Sep 17 00:00:00 2001 From: heminjian502 Date: Thu, 18 Aug 2022 19:40:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/system/SysLoginController.java | 1 - ruoyi-admin/src/main/resources/application-druid.yml | 4 ++-- ruoyi-admin/src/main/resources/application.yml | 6 +++--- .../com/ruoyi/framework/web/service/SysLoginService.java | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index 715486b..9b3e7a6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -81,7 +81,6 @@ public class SysLoginController @ApiOperation("app医生完善信息") @PostMapping("/login/app/fill/info") public AjaxResult fillInfoForDoctor(@RequestBody @Validated AppRegisterReq req) { - logger.info("fillInfoForDoctor:{}", req); return loginService.loginForAppFillInfo(req); } diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 16a3154..ceae654 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://192.168.20.89:3306/tongue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://localhost:3306/tongue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root - password: root + password: smartpark@123 # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 162496b..a7a49f6 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -67,13 +67,13 @@ spring: # redis 配置 redis: # 地址 - host: 192.168.20.89 + host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 - database: 4 + database: 2 # 密码 - password: 12345 + password: # 连接超时时间 timeout: 10s lettuce: diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java index 75fa379..2b7832c 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysLoginService.java @@ -147,8 +147,10 @@ public class SysLoginService public AjaxResult loginForAppFillInfo(AppRegisterReq req) { if (StringUtils.isNotEmpty(req.getMedicalLicense())) { + log.info("MedicalLicense is not null."); req.setMedicalLicense(FileUploadUtils.generateImage(req.getMedicalLicense(), uploadFilePath)); } + log.info("login for app fill info req :{}", req); // 查询sys_user数据 SysUser sysUser = userService.selectUserByPhone(req.getPhone()); if (Objects.nonNull(sysUser)) {