后台:账号管理
This commit is contained in:
@@ -662,14 +662,11 @@ export function getFloorStatus(gachaId: number, floor: Floor[]) {
|
||||
export async function checkWhiteListWithUid(uid: number) {
|
||||
let user = await UserModel.findUserByUid(uid);
|
||||
if(!user) return false;
|
||||
let { tel, ip, auth } = user;
|
||||
return await checkWhiteList(tel, ip, auth);
|
||||
let { tel, ip } = user;
|
||||
return await checkWhiteList(tel, ip);
|
||||
}
|
||||
|
||||
export async function checkWhiteList(tel: string, ip: string, auth: number) {
|
||||
if(auth == 1) {
|
||||
return true;
|
||||
}
|
||||
export async function checkWhiteList(tel: string, ip: string) {
|
||||
if(tel) {
|
||||
let result = await WhiteListModel.checkTel(tel);
|
||||
if(!!result) return true;
|
||||
|
||||
Reference in New Issue
Block a user