Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
boomzero committed Sep 6, 2024
2 parents 5458a2a + 0a3b156 commit 8ec087c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function sleep(time: number) {
}

export class Process {
private AdminUserList: Array<string> = ["chenlangning", "shanwenxiao"];
private AdminUserList: Array<string> = ["chenlangning", "shanwenxiao", "zhuchenrui2"];
private DenyMessageList: Array<string> = [];

Check warning on line 47 in Source/Process.ts

View workflow job for this annotation

GitHub Actions / Qodana for JS

Mismatched query and update of collection

Contents of collection `DenyMessageList` are queried, but never written
private DenyBadgeEditList: Array<string> = [];

Check warning on line 48 in Source/Process.ts

View workflow job for this annotation

GitHub Actions / Qodana for JS

Mismatched query and update of collection

Contents of collection `DenyBadgeEditList` are queried, but never written
private readonly CaptchaSecretKey: string;
Expand Down Expand Up @@ -1200,7 +1200,7 @@ export class Process {
text: Data["Content"],
}
);
if (check[check[0]["label"] == "NEGATIVE" ? 0 : 1]["score"].toFixed() > 0.85) {
if (check[check[0]["label"] == "NEGATIVE" ? 0 : 1]["score"].toFixed() > 0.90) {
return new Result(false, "您设置的标签内容含有负面词汇,请修改后重试");
}
ThrowErrorIfFailed(await this.XMOJDatabase.Update("badge", {
Expand Down

0 comments on commit 8ec087c

Please sign in to comment.