Commit b7a98af7 authored by 刘基明's avatar 刘基明

文本校验打印违规关键字fix

parent 890014d4
......@@ -831,13 +831,13 @@ public class ThemeManager {
while (content.length() > 5000) {
b = TencentcloudUtils.textModeration(content.substring(0, 5000));
if (StringUtils.isNotBlank(b)) {
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),ErrorCodeConstant.CONTENT_ILLEGAL.getMsg()+b);
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),"疑似违规词汇:"+b);
}
content = content.substring(5000);
}
b = TencentcloudUtils.textModeration(content);
if (StringUtils.isNotBlank(b)) {
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),ErrorCodeConstant.CONTENT_ILLEGAL.getMsg()+b);
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),"疑似违规词汇:"+b);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment