Skip to content

Commit 84313ff

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/b3log/symphony/processor/SettingsProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ public void updateProfiles(final RequestContext context) {
10451045
}
10461046

10471047
// 敏感词检测
1048-
String content = userTags + userURL + userQQ + userIntro + userNickname;
1048+
String content = userNickname + "\n" + userIntro + "\n" + userTags + "\n" + userURL;
10491049
JSONObject censorResult = QiniuTextCensor.censor(content);
10501050
if (censorResult.optString("do").equals("block")) {
10511051
context.renderMsg("个人信息中含违规信息,请修改后重试。");

0 commit comments

Comments
 (0)