From 97bc5c363fa3d240e21e263833bcfbb6998e084d Mon Sep 17 00:00:00 2001 From: boomzero Date: Sat, 7 Sep 2024 17:09:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=80=E6=AC=A1=E6=9C=80=E5=A4=9A@3?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Process.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Process.ts b/Source/Process.ts index 51f1118..93ffb81 100644 --- a/Source/Process.ts +++ b/Source/Process.ts @@ -402,6 +402,9 @@ export class Process { } } MentionPeople = Array.from(new Set(MentionPeople)); + if (MentionPeople.length > 3) { + return new Result(false, "一次最多@3个人"); + } const ReplyID = ThrowErrorIfFailed(await this.XMOJDatabase.Insert("bbs_reply", { user_id: this.Username, post_id: Data["PostID"],