灰度白名单测试

This commit is contained in:
daihh
2022-12-12 19:21:28 +08:00
parent 9f9a7cf554
commit 76b09f24e9
3 changed files with 20 additions and 12 deletions

View File

@@ -13,7 +13,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 +32,7 @@ const isTest=function(code){
}
})
}
return testUser;
}