From b311c0d7aad6f77659e39fb4f7900d1f0ef9de93 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 19 七月 2022 08:49:33 +0800
Subject: [PATCH] 巡检计划调整为cmd模式
---
service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java b/service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java
index e56f872..e80ec21 100644
--- a/service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java
+++ b/service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java
@@ -51,6 +51,10 @@
}
public String getAppId() {
+ String appIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appId");
+ if (!StringUtil.isEmpty(appIdCache)) {
+ return appIdCache;
+ }
return appId;
}
@@ -59,6 +63,11 @@
}
public String getSecret() {
+
+ String appSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appSecret");
+ if (!StringUtil.isEmpty(appSecretCache)) {
+ return appSecretCache;
+ }
return secret;
}
@@ -75,14 +84,23 @@
}
public String getKey() {
+ String keyCache = MappingCache.getValue(WechatConstant.WECHAT_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;
}
@@ -111,6 +129,10 @@
}
public String getWechatAppId() {
+ String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId");
+ if (!StringUtil.isEmpty(wechatAppIdCache)) {
+ return wechatAppIdCache;
+ }
return wechatAppId;
}
@@ -119,6 +141,10 @@
}
public String getWechatAppSecret() {
+ String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret");
+ if (!StringUtil.isEmpty(wechatAppSecretCache)) {
+ return wechatAppSecretCache;
+ }
return wechatAppSecret;
}
--
Gitblit v1.8.0