优化代码
This commit is contained in:
parent
1fdbfb97b1
commit
46d43660d1
@ -28,7 +28,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
|
|
||||||
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationErrorList;
|
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationErrorList;
|
||||||
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject;
|
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject;
|
||||||
import static com.xkrs.utils.AliyunSmsUtils.sendSms;
|
import static com.xkrs.utils.AliYunSmsUtils.sendSms;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 系统用户Controller
|
* 系统用户Controller
|
||||||
@ -248,6 +248,12 @@ public class SysUserController {
|
|||||||
return sysUserService.adminUpdatePassword(userId,newPassword,confirmPassword);
|
return sysUserService.adminUpdatePassword(userId,newPassword,confirmPassword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送手机号
|
||||||
|
* @param phone
|
||||||
|
* @return
|
||||||
|
* @throws ClientException
|
||||||
|
*/
|
||||||
@GetMapping("/verificationCode")
|
@GetMapping("/verificationCode")
|
||||||
public String verificationCode(@RequestParam("phone") String phone) throws ClientException {
|
public String verificationCode(@RequestParam("phone") String phone) throws ClientException {
|
||||||
// 获取区域信息
|
// 获取区域信息
|
||||||
|
@ -7,15 +7,14 @@ import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
|
|||||||
import com.aliyuncs.exceptions.ClientException;
|
import com.aliyuncs.exceptions.ClientException;
|
||||||
import com.aliyuncs.profile.DefaultProfile;
|
import com.aliyuncs.profile.DefaultProfile;
|
||||||
import com.aliyuncs.profile.IClientProfile;
|
import com.aliyuncs.profile.IClientProfile;
|
||||||
import com.xkrs.service.impl.FirePointServiceImpl;
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Xin
|
* @author Xin
|
||||||
*/
|
*/
|
||||||
public class AliyunSmsUtils {
|
public class AliYunSmsUtils {
|
||||||
public static Logger log = LoggerFactory.getLogger(AliyunSmsUtils.class);
|
public static Logger log = LoggerFactory.getLogger(AliYunSmsUtils.class);
|
||||||
/**
|
/**
|
||||||
* 产品名称:云通信短信API产品,开发者无需替换
|
* 产品名称:云通信短信API产品,开发者无需替换
|
||||||
*/
|
*/
|
@ -38,7 +38,7 @@ spring.cache.type = redis
|
|||||||
spring.redis.database = 8
|
spring.redis.database = 8
|
||||||
spring.redis.host = localhost
|
spring.redis.host = localhost
|
||||||
spring.redis.port = 6379
|
spring.redis.port = 6379
|
||||||
#spring.redis.password=sdust2020
|
spring.redis.password=sdust2020
|
||||||
spring.redis.timeout = 10000
|
spring.redis.timeout = 10000
|
||||||
spring.redis.lettuce.pool.max-active = 100
|
spring.redis.lettuce.pool.max-active = 100
|
||||||
spring.redis.lettuce.pool.max-wait = 10000
|
spring.redis.lettuce.pool.max-wait = 10000
|
||||||
|
Loading…
Reference in New Issue
Block a user