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

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

parent 2fdd87b7
......@@ -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()+":");
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),ErrorCodeConstant.CONTENT_ILLEGAL.getMsg()+":"+b);
}
content = content.substring(5000);
}
b = TencentcloudUtils.textModeration(content);
if (StringUtils.isNotBlank(b)) {
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),ErrorCodeConstant.CONTENT_ILLEGAL.getMsg()+":");
throw new BizException(ErrorCodeConstant.CONTENT_ILLEGAL.getCode(),ErrorCodeConstant.CONTENT_ILLEGAL.getMsg()+":"+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