java110
2023-01-30 a31e79f8a020cdcfa7105a11d907abe7e4e3cfff
service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java
@@ -2,6 +2,7 @@
import com.java110.utils.cache.MappingCache;
import com.java110.utils.constant.MappingConstant;
import com.java110.utils.constant.WechatConstant;
import com.java110.utils.util.StringUtil;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -84,7 +85,7 @@
    }
    public String getKey() {
        String keyCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "key");
        String keyCache = MappingCache.getValue(MappingConstant.WECHAT_STORE_DOMAIN, "key");
        if (!StringUtil.isEmpty(keyCache)) {
            return keyCache;
        }
@@ -129,6 +130,10 @@
    }
    public String getWechatAppId() {
        String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId");
        if (!StringUtil.isEmpty(wechatAppIdCache)) {
            return wechatAppIdCache;
        }
        return wechatAppId;
    }
@@ -137,6 +142,10 @@
    }
    public String getWechatAppSecret() {
        String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret");
        if (!StringUtil.isEmpty(wechatAppSecretCache)) {
            return wechatAppSecretCache;
        }
        return wechatAppSecret;
    }