Skip to content

Commit 6ed070f

Browse files
committed
feat: update notification message for sensitive content review
1 parent 63961b0 commit 6ed070f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/floor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,16 +596,16 @@ func (floor *Floor) SendSensitive(_ *gorm.DB) error {
596596
}
597597

598598
// construct message
599-
desc := fmt.Sprintf("有新的敏感内容需要审核,floorID: %d", floor.ID)
599+
desc := "您有待审核的内容"
600600
message := Notification{
601601
Data: floor,
602602
Recipients: userIDs,
603603
Description: desc,
604-
Title: "您有待审核的内容",
604+
Title: desc,
605605
Type: MessageTypeSensitive,
606606
URL: fmt.Sprintf("/api/floors/%d", floor.ID),
607607
}
608608
_, err := message.Send()
609-
utils.Notify(utils.NotificationTargetFeishuAdmin, desc)
609+
utils.Notify(utils.NotificationTargetFeishuAdmin, desc+fmt.Sprintf("\n##%d\n%s", floor.ID, floor.Content))
610610
return err
611611
}

0 commit comments

Comments
 (0)