医生微信登录接口

master
heminjian502 2 years ago
parent 10f93cfd6b
commit b37e8acb28

@ -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);
}

@ -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:
# 从数据源开关/默认关闭

@ -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:

@ -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)) {

Loading…
Cancel
Save