From ff44d58283e5764e0e07fdedb40fc00027c5b923 Mon Sep 17 00:00:00 2001 From: zhrh Date: Mon, 8 Dec 2025 17:11:17 +0800 Subject: [PATCH] =?UTF-8?q?szx-1194=20=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E7=94=A8http=E6=B7=BB=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xboe/module/course/api/CourseManageApi.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseManageApi.java b/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseManageApi.java index fcf9015e..b8269475 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseManageApi.java +++ b/servers/boe-server-all/src/main/java/com/xboe/module/course/api/CourseManageApi.java @@ -1284,13 +1284,14 @@ public class CourseManageApi extends ApiBaseController{ * 保存邮箱日志到boe_thread_log表 * @param email 获取到的邮箱地址 */ - private void saveEmailLog(String email) { - // 如果email为null或空,不记录日志 + @Transactional + public void saveEmailLog(String email) { + // 如果email为null或空,写入占位并记录日志 if (StringUtils.isBlank(email)) { - log.warn("邮箱地址为空,跳过日志记录"); + log.warn("邮箱地址为空,使用占位值记录日志"); email = "null"; } - + try { JSONObject extraData = new JSONObject(); extraData.put("email", email);