fix 奇遇

This commit is contained in:
luying
2020-12-31 15:22:01 +08:00
parent 747d24c6b2
commit 255696e590
4 changed files with 36 additions and 40 deletions
@@ -13,7 +13,7 @@ export async function switchOnFunc(roleId: string, type: number, param: number,
let funcs = new Array<{id: number, desc: string, script: string}>(), addFuncs = new Array<number>();
for(let obj of dicFuncSwitch) {
if(obj.conditionType == type && !dataFuncs.includes(obj.id) && obj.param == param) {
if(obj.conditionType == type && !dataFuncs.includes(obj.id) && obj.param <= param) {
funcs.push({id: obj.id, desc: obj.desc, script: obj.script});
addFuncs.push(obj.id);
}
+5 -1
View File
@@ -4,9 +4,13 @@ function main (){
if (args.length !== 1) {
return console.log('参数请填写环境变量');
}
let env = args[0];
if(args[0] == 'stable') {
env = 'production';
}
let configObject = {
env: args[0]
env: env
};
let result = JSON.stringify(configObject);