From 64f4079a20eb4499845182a5b91abbbbcf1b44fc Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 27 四月 2025 15:17:24 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/task/NotifyScheduler.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/zy/asrs/task/NotifyScheduler.java b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
index 3dfc3a2..f9203cc 100644
--- a/src/main/java/com/zy/asrs/task/NotifyScheduler.java
+++ b/src/main/java/com/zy/asrs/task/NotifyScheduler.java
@@ -91,27 +91,27 @@
                 if (notifyDto.getSendCustomData()) {
                     //鑷畾涔夋秷鎭牸寮�
                     NotifyCustomDataDto customData = notifyDto.getCustomData();
+                    apiLog.setUrl(customData.getUri() + customData.getPath());
+                    apiLog.setRequest(customData.getData());
+                    apiLog.setCreateTime(new Date());
+
                     response = new HttpHandler.Builder()
                             .setUri(customData.getUri())
                             .setPath(customData.getPath())
                             .setJson(customData.getData())
                             .build()
                             .doPost();
-
-                    apiLog.setUrl(customData.getUri() + customData.getPath());
-                    apiLog.setRequest(customData.getData());
-                    apiLog.setCreateTime(new Date());
                 }else {
+                    apiLog.setUrl(notifyUri + notifyUriPath);
+                    apiLog.setRequest(JSON.toJSONString(notifyDto));
+                    apiLog.setCreateTime(new Date());
+
                     response = new HttpHandler.Builder()
                             .setUri(notifyUri)
                             .setPath(notifyUriPath)
                             .setJson(JSON.toJSONString(notifyDto))
                             .build()
                             .doPost();
-
-                    apiLog.setUrl(notifyUri + notifyUriPath);
-                    apiLog.setRequest(JSON.toJSONString(notifyDto));
-                    apiLog.setCreateTime(new Date());
                 }
 
                 apiLog.setResponse(response);

--
Gitblit v1.9.1