From 093b73aadb022895a02dbbcd64b87613e19b547b Mon Sep 17 00:00:00 2001
From: 1098226878@qq.com <1098226878@qq.com>
Date: 星期一, 10 一月 2022 18:05:21 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity

---
 service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java |    8 ++++++++
 1 files changed, 8 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 ae57a9d..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
@@ -129,6 +129,10 @@
     }
 
     public String getWechatAppId() {
+        String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId");
+        if (!StringUtil.isEmpty(wechatAppIdCache)) {
+            return wechatAppIdCache;
+        }
         return wechatAppId;
     }
 
@@ -137,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