Skip to content

Commit 379a774

Browse files
committed
🎨 文本接入AI检测
1 parent 7cae8b1 commit 379a774

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/b3log/symphony/util/QiniuTextCensor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public static JSONObject censor(String text) {
8282
case "meaningless":
8383
retResult.put("type", "无意义");
8484
break;
85+
default:
86+
retResult.put("type", "未知");
87+
break;
8588
}
8689
// 如果是涉政、暴恐、色情、违禁
8790
if ("politics".equals(type) || "terrorism".equals(type) || "porn".equals(type) || "contraband".equals(type)) {

0 commit comments

Comments
 (0)