From c3ff6c3821aa2759222011e69cca8944aa599edf Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 18 四月 2025 16:32:05 +0800
Subject: [PATCH] 代码初始化

---
 server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java b/server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java
index 9c393e4..487fbf5 100644
--- a/server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java
+++ b/server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java
@@ -9,6 +9,7 @@
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Component;
 
 import javax.annotation.PostConstruct;
@@ -24,15 +25,15 @@
     private static JSONObject json = new JSONObject();
 
 
-    @Autowired
-    private SystemDictDataBiz systemDictDataBiz;
 
     private static QywxUtil qyUtil;
+    @Value("${qiwei.serviceurl}")
+    private    String qiweiUrl;
 
     @PostConstruct
     private void init() {
         qyUtil = this;
-        systemDictDataBiz = qyUtil.systemDictDataBiz;
+//        QywxUtil.qiweiUrl =  serviceurl;
     }
 
 
@@ -158,7 +159,7 @@
             String res = null;
             try {
                 Map<String,String> headers = new HashMap<>();
-                res = HttpsUtil.postJson(url,param);
+                res = HttpsUtil.postJson(qyUtil.qiweiUrl+url,param);
                 QywxBaseResponse result = JSONObject.parseObject(res, typeReference.getType());
                 logResult(result,name);
                 return  result;
@@ -175,7 +176,7 @@
             String res = null;
             try {
                 Map<String,String> headers = new HashMap<>();
-                res = HttpsUtil.postJson(url,param);
+                res = HttpsUtil.postJson(qyUtil.qiweiUrl+url,param);
                 T result = JSONObject.parseObject(res, typeReference.getType());
 //                logResult(result,name);
                 return  result;

--
Gitblit v1.9.3