pull/1121/head
梁宇奇 2025-11-13 22:45:21 +08:00
parent f30d2437cb
commit 4eddffbb1c
1 changed files with 2 additions and 1 deletions

View File

@ -71,6 +71,7 @@ public class FsNotice extends AbstractNotice {
*/ */
public <T extends Exception> void sendException2MonitorChat(String uri, T e) { public <T extends Exception> void sendException2MonitorChat(String uri, T e) {
if (Boolean.TRUE.equals(monitorSwitch)) { if (Boolean.TRUE.equals(monitorSwitch)) {
String username = SecurityUtils.getUsernameSafe();
ThreadUtil.execAsync(() -> { ThreadUtil.execAsync(() -> {
try { try {
//内容 //内容
@ -83,7 +84,7 @@ public class FsNotice extends AbstractNotice {
.createText(CharSequenceUtil.format("地址:{}", uri)))); .createText(CharSequenceUtil.format("地址:{}", uri))));
} }
contentFields.add(Collections.singletonList(FeiShuTextField contentFields.add(Collections.singletonList(FeiShuTextField
.createText(CharSequenceUtil.format("用户:{}", SecurityUtils.getUsernameSafe())))); .createText(CharSequenceUtil.format("用户:{}", username))));
contentFields.add(Collections.singletonList(FeiShuTextField contentFields.add(Collections.singletonList(FeiShuTextField
.createText(CharSequenceUtil.format("时间:{}", DateUtil.now())))); .createText(CharSequenceUtil.format("时间:{}", DateUtil.now()))));
contentFields.add(Collections.singletonList(FeiShuTextField contentFields.add(Collections.singletonList(FeiShuTextField