提交白名单的修改

This commit is contained in:
daihh
2022-12-15 11:54:29 +08:00
parent 37cf759922
commit b230d239c3

View File

@@ -8,12 +8,6 @@ const userCodes=[
'10181457'
]
const userCodesPro=[
'00004409',
'boeutest',
'10181457'
]
const init=function(){
let data=sessionStorage.getItem('whiteuser-session');
if(!data){
@@ -39,6 +33,11 @@ const isTest= function(code){
flag=codes.some(item=>{
return (item==code);
})
}else{
//如果没有,就使用程序中写死的
flag=userCodes.some(item=>{
return (item==code);
})
}
return flag;
}