From 24b9a9fedb85572e2e3486e53543f7f4b1e33eb1 Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Mon, 18 Dec 2023 00:18:27 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/Web/validator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/Web/validator.js b/frontend/Web/validator.js index dff0773..f3032a4 100644 --- a/frontend/Web/validator.js +++ b/frontend/Web/validator.js @@ -38,8 +38,8 @@ async function IsValid(text) { if(text.length==0||text.length>590) return true; // 通过以下代码创建API请求并设置参数。 const params = { - // 文本检测service:内容安全控制台文本增强版规则配置的serviceCode,示例:chat_detection - "Service": "chat_detection", + // 文本检测service:内容安全控制台文本增强版规则配置的serviceCode,示例:comment_detection + "Service": "comment_detection", "ServiceParameters": JSON.stringify({ //待检测文本内容。 "content": text