mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	完善 AbstractPayClient 的实现
This commit is contained in:
		@@ -3,7 +3,7 @@ package cn.iocoder.yudao.framework.sms.core.client;
 | 
			
		||||
import cn.iocoder.yudao.framework.sms.core.property.SmsChannelProperties;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 短信客户端工厂接口
 | 
			
		||||
 * 短信客户端的工厂接口
 | 
			
		||||
 *
 | 
			
		||||
 * @author zzf
 | 
			
		||||
 * @date 2021/1/28 14:01
 | 
			
		||||
 
 | 
			
		||||
@@ -30,11 +30,6 @@ public abstract class AbstractSmsClient implements SmsClient {
 | 
			
		||||
     */
 | 
			
		||||
    protected final SmsCodeMapping codeMapping;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 短信客户端有参构造函数
 | 
			
		||||
     *
 | 
			
		||||
     * @param properties 短信配置
 | 
			
		||||
     */
 | 
			
		||||
    public AbstractSmsClient(SmsChannelProperties properties, SmsCodeMapping codeMapping) {
 | 
			
		||||
        this.properties = properties;
 | 
			
		||||
        this.codeMapping = codeMapping;
 | 
			
		||||
@@ -48,6 +43,11 @@ public abstract class AbstractSmsClient implements SmsClient {
 | 
			
		||||
        log.info("[init][配置({}) 初始化完成]", properties);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 自定义初始化
 | 
			
		||||
     */
 | 
			
		||||
    protected abstract void doInit();
 | 
			
		||||
 | 
			
		||||
    public final void refresh(SmsChannelProperties properties) {
 | 
			
		||||
        // 判断是否更新
 | 
			
		||||
        if (properties.equals(this.properties)) {
 | 
			
		||||
@@ -59,11 +59,6 @@ public abstract class AbstractSmsClient implements SmsClient {
 | 
			
		||||
        this.init();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 自定义初始化
 | 
			
		||||
     */
 | 
			
		||||
    protected abstract void doInit();
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Long getId() {
 | 
			
		||||
        return properties.getId();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user