Merge branch 'stat' into third

This commit is contained in:
daihh
2022-12-13 16:52:21 +08:00
6 changed files with 62 additions and 18 deletions

View File

@@ -1,11 +1,17 @@
/**测试人员名单*/
const userCodes=[
'00004409'
'12345601',
'12345603',
'00004409',
'boeutest',
'10181457'
]
const userCodesPro=[
'00004409'
'00004409',
'boeutest',
'10181457'
]
/**是否是测试人员*/
@@ -13,7 +19,7 @@ const isTest=function(code){
var testUser=false;
var mode=process.env.NODE_ENV;
if(mode=='testing'){
if(mode=='testing' || mode=='development'){
userCodes.some(item=>{
if(item===code){
testUser=true;
@@ -32,7 +38,7 @@ const isTest=function(code){
}
})
}
return testUser;
}