From 91573a133dad2c62463a941aafc671df17370047 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期四, 03 七月 2025 15:35:56 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/task/NotifyScheduler.java | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/zy/asrs/task/NotifyScheduler.java b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
index 43fe4f9..675e9ce 100644
--- a/src/main/java/com/zy/asrs/task/NotifyScheduler.java
+++ b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
@@ -4,8 +4,6 @@
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zy.asrs.domain.NotifyDto;
-import com.zy.asrs.entity.HttpRequestLog;
-import com.zy.asrs.service.HttpRequestLogService;
import com.zy.asrs.utils.NotifyUtils;
import com.zy.common.utils.HttpHandler;
import com.zy.common.utils.RedisUtil;
@@ -35,8 +33,6 @@
private SlaveProperties slaveProperties;
@Autowired
private ConfigService configService;
- @Autowired
- private HttpRequestLogService httpRequestLogService;
@Scheduled(cron = "0/3 * * * * ? ")
public synchronized void notifyShuttle(){
@@ -99,10 +95,10 @@
continue;
}
- HttpRequestLog httpRequestLog = new HttpRequestLog();
- httpRequestLog.setName(notifyUri + notifyUriPath);
- httpRequestLog.setRequest(JSON.toJSONString(notifyDto));
- httpRequestLog.setCreateTime(new Date());
+// HttpRequestLog httpRequestLog = new HttpRequestLog();
+// httpRequestLog.setName(notifyUri + notifyUriPath);
+// httpRequestLog.setRequest(JSON.toJSONString(notifyDto));
+// httpRequestLog.setCreateTime(new Date());
try {
//瑙﹀彂閫氱煡
@@ -112,7 +108,7 @@
.setJson(JSON.toJSONString(notifyDto))
.build()
.doPost();
- httpRequestLog.setResponse(response);
+// httpRequestLog.setResponse(response);
JSONObject jsonObject = JSON.parseObject(response);
Integer code = jsonObject.getInteger("code");
@@ -126,7 +122,7 @@
e.printStackTrace();
}finally {
//淇濆瓨璁板綍
- httpRequestLogService.insert(httpRequestLog);
+// httpRequestLogService.insert(httpRequestLog);
}
//閫氱煡澶辫触
--
Gitblit v1.9.1