🐞 fix: 修复鉴权问题

This commit is contained in:
zhiyu1998 2024-08-13 17:03:10 +08:00
parent 88331e938d
commit 8e64e45c7c

View File

@ -2090,7 +2090,7 @@ export class tools extends plugin {
return false;
}
const whiteList = await redisGetKey(REDOS_YUNZAI_WHITELIST);
return whiteList.includes(userId);
return whiteList.includes(userId) || whiteList.includes(userId.toString());
}
/**