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 Aug 6, 2024
2 parents 95d3ede + 99f30cc commit 9d215b7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/Process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ function sleep(time: number) {
}

export class Process {
private AdminUserList: Array<string> = ["zhuchenrui2", "shanwenxiao", "shihongxi"];
private AdminUserList: Array<string> = ["zhuchenrui2", "shanwenxiao"];
private DenyMessageList: Array<string> = [""];
private DenyBadgeEditList: Array<string> = [""];
private readonly CaptchaSecretKey: string;
private GithubImagePAT: string;
Expand Down Expand Up @@ -195,6 +196,9 @@ export class Process {
public IsAdmin = (): boolean => {
return this.AdminUserList.indexOf(this.Username) !== -1;
}
public DenyMessage = (): boolean => {
return this.DenyMessageList.indexOf(this.Username) !== -1;
}
public DenyEdit = (): boolean => {
return this.DenyBadgeEditList.indexOf(this.Username) !== -1;
}
Expand Down Expand Up @@ -882,6 +886,9 @@ export class Process {
"ToUser": "string",
"Content": "string"
}));
if (this.DenyMessage()){
return new Result(false,"该用户已关闭短消息接收");
}
if (Data["Content"].startsWith("您好,我是") && ThrowErrorIfFailed(await this.IfUserExistChecker(Data["ToUser"]))["Exist"] === false) {
return new Result(false, "未找到用户");
}
Expand Down

0 comments on commit 9d215b7

Please sign in to comment.