系统登录改造:1、阿里云方式下短信验证码缓存key缺少手机号;2、登录图形验证码配置nacos无法刷新问题修复;

This commit is contained in:
gaoqr
2024-08-30 18:25:06 +08:00
parent 4a7532a362
commit 6766f22482
3 changed files with 3 additions and 3 deletions
@@ -100,7 +100,7 @@ public class AliyunSmsClient extends AbstractSmsClient {
// 执行请求
SendSmsResponse response = client.getAcsResponse(request);
return new SmsSendRespDTO().setSuccess(Objects.equals(response.getCode(), API_CODE_SUCCESS)).setSerialNo(response.getBizId())
.setApiRequestId(response.getRequestId()).setApiCode(response.getCode()).setApiMsg(response.getMessage()).setChannelCode(properties.getChannel());
.setApiRequestId(response.getRequestId()).setApiCode(response.getCode()).setApiMsg(response.getMessage()).setMobile(mobile).setChannelCode(properties.getChannel());
}
@Override
@@ -2,14 +2,12 @@ package com.cf.imes.module.system;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
/**
* 项目的启动类
* @author 晨丰科技
*/
@SpringBootApplication
@RefreshScope
public class SystemServerApplication {
public static void main(String[] args) {
@@ -41,6 +41,7 @@ import com.xingyuv.captcha.service.CaptchaService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@@ -58,6 +59,7 @@ import static com.cf.imes.module.system.enums.ErrorCodeConstants.ORGAN_DATA_CODE
*/
@Service
@Slf4j
@RefreshScope
public class AdminAuthServiceImpl implements AdminAuthService {
@Resource