| | |
| | | |
| | | |
| | | 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; |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |
| | |
| | | } |
| | | |
| | | public String getWechatAppId() { |
| | | String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId"); |
| | | if (!StringUtil.isEmpty(wechatAppIdCache)) { |
| | | return wechatAppIdCache; |
| | | } |
| | | return wechatAppId; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public String getWechatAppSecret() { |
| | | String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret"); |
| | | if (!StringUtil.isEmpty(wechatAppSecretCache)) { |
| | | return wechatAppSecretCache; |
| | | } |
| | | return wechatAppSecret; |
| | | } |
| | | |