From d06afcaf821b178b8b6169779842a56b423bd6e6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 22 四月 2025 17:04:15 +0800
Subject: [PATCH] 代码初始化
---
server/src/main/java/com/doumee/core/utils/qiyeweixin/QywxUtil.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 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 35b38e9..36325d6 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
@@ -25,17 +25,16 @@
private static JSONObject json = new JSONObject();
- @Autowired
- private SystemDictDataBiz systemDictDataBiz;
private static QywxUtil qyUtil;
+
@Value("${qiwei.serviceurl}")
- private static String qiweiUrl;
+ private String qiweiUrl;
@PostConstruct
private void init() {
qyUtil = this;
- systemDictDataBiz = qyUtil.systemDictDataBiz;
+// QywxUtil.qiweiUrl = serviceurl;
}
@@ -89,6 +88,7 @@
String url = interfaceUrl[0].replace("${accesstoken}",token);
QywxSendMsgResponse response = sendHttpRequestSingle(url,interfaceUrl[1],JSONObject.toJSONString(param)
,new TypeReference<QywxSendMsgResponse>(){});
+ log.error("鎺ㄩ�佹秷鎭粨鏋渰}",JSONObject.toJSONString(response));
if(response.getErrcode()!=null && response.getErrcode() ==0){
return response;
}
@@ -161,7 +161,7 @@
String res = null;
try {
Map<String,String> headers = new HashMap<>();
- res = HttpsUtil.postJson(qiweiUrl+url,param);
+ res = HttpsUtil.postJson(qyUtil.qiweiUrl+url,param);
QywxBaseResponse result = JSONObject.parseObject(res, typeReference.getType());
logResult(result,name);
return result;
@@ -178,7 +178,7 @@
String res = null;
try {
Map<String,String> headers = new HashMap<>();
- res = HttpsUtil.postJson(qiweiUrl+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