fix: 微信登录验证码及配置修改。
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
package com.intc.common.sms.config;
|
||||
|
||||
import com.intc.common.sms.config.properties.SmsProperties;
|
||||
import com.intc.common.sms.core.dao.PlusSmsDao;
|
||||
import com.intc.common.sms.handler.SmsExceptionHandler;
|
||||
import org.dromara.sms4j.api.dao.SmsDao;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
|
||||
@@ -14,6 +16,7 @@ import org.springframework.context.annotation.Primary;
|
||||
* @author Feng
|
||||
*/
|
||||
@AutoConfiguration(after = {RedisAutoConfiguration.class})
|
||||
@EnableConfigurationProperties(SmsProperties.class)
|
||||
public class SmsAutoConfiguration {
|
||||
|
||||
@Primary
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.intc.common.sms.config.properties;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* 短信配置属性
|
||||
*
|
||||
* @author Qoder
|
||||
*/
|
||||
@Data
|
||||
@ConfigurationProperties(prefix = "sms.plus")
|
||||
public class SmsProperties {
|
||||
|
||||
/**
|
||||
* 短信验证码模板ID
|
||||
*/
|
||||
private String codeTemplateId;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user