fix 奇遇
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user