From 4276f9c419c889068e6fc6adcf6f1fc2eed8831c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 13 Feb 2026 11:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A8=E6=80=81=E4=B8=BE=E6=8A=A5=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/app/command/dynamic/DynamicReportCmdExe.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicReportCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicReportCmdExe.java index 6b805da9..6e3d1280 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicReportCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/DynamicReportCmdExe.java @@ -8,6 +8,7 @@ import com.red.circle.other.infra.database.rds.service.dynamic.DynamicContentSer import com.red.circle.other.infra.database.rds.service.dynamic.DynamicReportService; import com.red.circle.other.inner.asserts.DynamicErrorCode; import com.red.circle.tool.core.date.TimestampUtils; +import com.red.circle.tool.core.text.StringUtils; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; @@ -38,7 +39,7 @@ public class DynamicReportCmdExe { dynamicReportService.save(new DynamicReport() .setApprovalStatus(0) .setDynamicContentId(content.getId()) - .setReportedContent(cmd.getReportedContent().replaceFirst(",", "")) + .setReportedContent(StringUtils.isNotBlank(cmd.getReportedContent()) ? cmd.getReportedContent().replaceFirst(",", "") : "") .setReportedUrls(cmd.getImageUrls()) .setReportedUserId(content.getCreateUser()) .setReportUserId(cmd.getReqUserId())