| | |
| | | |
| | | |
| | | 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 getAppId() { |
| | | String appIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appId"); |
| | | if (!StringUtil.isEmpty(appIdCache)) { |
| | | return appIdCache; |
| | | } |
| | | return appId; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public String getSecret() { |
| | | |
| | | String appSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appSecret"); |
| | | if (!StringUtil.isEmpty(appSecretCache)) { |
| | | return appSecretCache; |
| | | } |
| | | return secret; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | public String getKey() { |
| | | String keyCache = MappingCache.getValue(MappingConstant.WECHAT_STORE_DOMAIN, "key"); |
| | | if (!StringUtil.isEmpty(keyCache)) { |
| | | return keyCache; |
| | | } |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getMchId() { |
| | | String mchIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "mchId"); |
| | | if (!StringUtil.isEmpty(mchIdCache)) { |
| | | return mchIdCache; |
| | | } |
| | | return mchId; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | |