mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
修复bug
This commit is contained in:
parent
d4b32c763a
commit
6b3564dc49
@ -175,9 +175,9 @@ export class xzq extends plugin {
|
||||
true
|
||||
);
|
||||
if (!e.isMaster) {
|
||||
if (
|
||||
!(e.isGroup && redis.get(`fqxzq:g:${e.group_id})` || !redis.get(`fqxzq:u:${e.user_id}`)))
|
||||
) {
|
||||
const groupAllow = e.isGroup ? await redis.get(`fqxzq:g:${e.group_id}`) : null;
|
||||
const userAllow = await redis.get(`fqxzq:u:${e.user_id}`);
|
||||
if (!groupAllow && !userAllow) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user