From 9ac70efe81c1909d63b89f9b18c4f367c0584ceb Mon Sep 17 00:00:00 2001
From: 野心家 <1051256694@qq.com>
Date: 星期一, 28 四月 2025 16:04:00 +0800
Subject: [PATCH] 初始化

---
 src/main/java/com/zy/asrs/utils/PostMesDataUtils.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java b/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java
index ccf5b5d..dad036d 100644
--- a/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java
+++ b/src/main/java/com/zy/asrs/utils/PostMesDataUtils.java
@@ -2,6 +2,7 @@
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
+import com.core.common.SpringUtils;
 import com.core.exception.CoolException;
 import com.zy.asrs.service.ApiLogService;
 import com.zy.asrs.service.impl.ApiLogServiceImpl;
@@ -14,8 +15,6 @@
 
 @Slf4j
 public class PostMesDataUtils extends AbstractHandler<String> {
-
-    private ApiLogService apiLogService = new ApiLogServiceImpl();
 
     public ReturnT<String> postMesData(String name,String URL,String mesPath, Object combParam){
 //        if (true){
@@ -45,12 +44,13 @@
                     throw new CoolException("涓婃姤"+name);
                 }
             } catch (Exception e) {
-                log.error("涓婃姤澶辫触");
+                log.error("璇锋眰鎺ュ彛澶辫触锛侊紒锛乽rl锛歿}锛況equest锛歿}锛況esponse锛歿}", URL+"/"+mesPath, JSON.toJSONString(combParam), response);
 //                      TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
                 return FAIL.setMsg(e.getMessage());
             } finally {
                 try {
                     // 淇濆瓨鎺ュ彛鏃ュ織
+                    ApiLogService apiLogService = SpringUtils.getBean(ApiLogService.class);
                     apiLogService.save(
                             "涓婃姤"+name,
                             URL +"/"+ mesPath,

--
Gitblit v1.9.1