diff --git a/src/main/java/com/xkrs/controller/SysUserController.java b/src/main/java/com/xkrs/controller/SysUserController.java index 312ef5e..0c02acc 100644 --- a/src/main/java/com/xkrs/controller/SysUserController.java +++ b/src/main/java/com/xkrs/controller/SysUserController.java @@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit; import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationErrorList; import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject; -import static com.xkrs.utils.AliyunSmsUtils.sendSms; +import static com.xkrs.utils.AliYunSmsUtils.sendSms; /** * 系统用户Controller @@ -248,6 +248,12 @@ public class SysUserController { return sysUserService.adminUpdatePassword(userId,newPassword,confirmPassword); } + /** + * 发送手机号 + * @param phone + * @return + * @throws ClientException + */ @GetMapping("/verificationCode") public String verificationCode(@RequestParam("phone") String phone) throws ClientException { // 获取区域信息 diff --git a/src/main/java/com/xkrs/utils/AliyunSmsUtils.java b/src/main/java/com/xkrs/utils/AliYunSmsUtils.java similarity index 95% rename from src/main/java/com/xkrs/utils/AliyunSmsUtils.java rename to src/main/java/com/xkrs/utils/AliYunSmsUtils.java index d64cef9..527316c 100644 --- a/src/main/java/com/xkrs/utils/AliyunSmsUtils.java +++ b/src/main/java/com/xkrs/utils/AliYunSmsUtils.java @@ -7,15 +7,14 @@ import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse; import com.aliyuncs.exceptions.ClientException; import com.aliyuncs.profile.DefaultProfile; import com.aliyuncs.profile.IClientProfile; -import com.xkrs.service.impl.FirePointServiceImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Xin */ -public class AliyunSmsUtils { - public static Logger log = LoggerFactory.getLogger(AliyunSmsUtils.class); +public class AliYunSmsUtils { + public static Logger log = LoggerFactory.getLogger(AliYunSmsUtils.class); /** * 产品名称:云通信短信API产品,开发者无需替换 */ diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8ecbbfb..6f83a38 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -38,7 +38,7 @@ spring.cache.type = redis spring.redis.database = 8 spring.redis.host = localhost spring.redis.port = 6379 -#spring.redis.password=sdust2020 +spring.redis.password=sdust2020 spring.redis.timeout = 10000 spring.redis.lettuce.pool.max-active = 100 spring.redis.lettuce.pool.max-wait = 10000