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