From ce64e667815b39efdc2f8bd52be0d43d49db8d84 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 17 七月 2022 00:06:29 +0800
Subject: [PATCH] 优化小区位置

---
 service-api/src/main/java/com/java110/api/properties/WechatAuthProperties.java |   59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 59 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 254aa3c..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
@@ -1,6 +1,9 @@
 package com.java110.api.properties;
 
 
+import com.java110.utils.cache.MappingCache;
+import com.java110.utils.constant.WechatConstant;
+import com.java110.utils.util.StringUtil;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 import org.springframework.context.annotation.PropertySource;
 import org.springframework.stereotype.Component;
@@ -31,6 +34,8 @@
     private String rentingNotifyUrl;
     private String goodsNotifyUrl;
     private String oweFeeNotifyUrl;
+    private String tempCarFeeNotifyUrl;
+
 
     private String wechatAppId;//寰俊鍏紬鍙稩D
     private String wechatAppSecret;//寰俊鍏紬鍙风閽�
@@ -46,6 +51,10 @@
     }
 
     public String getAppId() {
+        String appIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appId");
+        if (!StringUtil.isEmpty(appIdCache)) {
+            return appIdCache;
+        }
         return appId;
     }
 
@@ -54,6 +63,11 @@
     }
 
     public String getSecret() {
+
+        String appSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "appSecret");
+        if (!StringUtil.isEmpty(appSecretCache)) {
+            return appSecretCache;
+        }
         return secret;
     }
 
@@ -70,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;
     }
 
@@ -94,6 +117,10 @@
     }
 
     public String getWxNotifyUrl() {
+        String wxNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wxNotifyUrl");
+        if (!StringUtil.isEmpty(wxNotifyUrlCache)) {
+            return wxNotifyUrlCache;
+        }
         return wxNotifyUrl;
     }
 
@@ -102,6 +129,10 @@
     }
 
     public String getWechatAppId() {
+        String wechatAppIdCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppId");
+        if (!StringUtil.isEmpty(wechatAppIdCache)) {
+            return wechatAppIdCache;
+        }
         return wechatAppId;
     }
 
@@ -110,6 +141,10 @@
     }
 
     public String getWechatAppSecret() {
+        String wechatAppSecretCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "wechatAppSecret");
+        if (!StringUtil.isEmpty(wechatAppSecretCache)) {
+            return wechatAppSecretCache;
+        }
         return wechatAppSecret;
     }
 
@@ -126,6 +161,10 @@
     }
 
     public String getRentingNotifyUrl() {
+        String rentingNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "rentingNotifyUrl");
+        if (!StringUtil.isEmpty(rentingNotifyUrlCache)) {
+            return rentingNotifyUrlCache;
+        }
         return rentingNotifyUrl;
     }
 
@@ -134,6 +173,10 @@
     }
 
     public String getOweFeeNotifyUrl() {
+        String oweFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "oweFeeNotifyUrl");
+        if (!StringUtil.isEmpty(oweFeeNotifyUrlCache)) {
+            return oweFeeNotifyUrlCache;
+        }
         return oweFeeNotifyUrl;
     }
 
@@ -142,10 +185,26 @@
     }
 
     public String getGoodsNotifyUrl() {
+        String goodsNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "goodsNotifyUrl");
+        if (!StringUtil.isEmpty(goodsNotifyUrlCache)) {
+            return goodsNotifyUrlCache;
+        }
         return goodsNotifyUrl;
     }
 
     public void setGoodsNotifyUrl(String goodsNotifyUrl) {
         this.goodsNotifyUrl = goodsNotifyUrl;
     }
+
+    public String getTempCarFeeNotifyUrl() {
+        String tempCarFeeNotifyUrlCache = MappingCache.getValue(WechatConstant.WECHAT_DOMAIN, "tempCarFeeNotifyUrl");
+        if (!StringUtil.isEmpty(tempCarFeeNotifyUrlCache)) {
+            return tempCarFeeNotifyUrlCache;
+        }
+        return tempCarFeeNotifyUrl;
+    }
+
+    public void setTempCarFeeNotifyUrl(String tempCarFeeNotifyUrl) {
+        this.tempCarFeeNotifyUrl = tempCarFeeNotifyUrl;
+    }
 }

--
Gitblit v1.8.0