修复了文本长度过大的问题

This commit is contained in:
2023-12-17 05:52:04 +00:00
parent 3b4ae7d013
commit d5da269cdc

View File

@ -35,6 +35,7 @@ async function IsValid(text) {
// 再去除换行和回车
//text = text.replace(/[\r\n]/g, "");
console.log("after replace: "+text);
if(text.length==0||text.length>590) return true;
// 通过以下代码创建API请求并设置参数。
const params = {
// 文本检测service内容安全控制台文本增强版规则配置的serviceCode示例chat_detection