清除console log
This commit is contained in:
parent
ef7dab7897
commit
bd7469f7fa
utils
|
@ -62,7 +62,6 @@ export async function checkRole() {
|
||||||
const account = get("account");
|
const account = get("account");
|
||||||
|
|
||||||
const userInfo = await getUserInfo(account.mid);
|
const userInfo = await getUserInfo(account.mid);
|
||||||
console.log("account", account.mid);
|
|
||||||
if (userInfo) {
|
if (userInfo) {
|
||||||
if (userInfo.is_a_member !== account) {
|
if (userInfo.is_a_member !== account) {
|
||||||
save("account", userInfo);
|
save("account", userInfo);
|
||||||
|
@ -71,6 +70,5 @@ export async function checkRole() {
|
||||||
|
|
||||||
const role = userInfo?.role;
|
const role = userInfo?.role;
|
||||||
const isVip = userInfo?.is_a_member;
|
const isVip = userInfo?.is_a_member;
|
||||||
console.log(role, isVip, userInfo);
|
|
||||||
return role !== 0 || isVip === 1;
|
return role !== 0 || isVip === 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue