升级,升星,升品,升彩星

This commit is contained in:
luying
2020-12-09 21:16:27 +08:00
parent bcb8f135a3
commit 92b5bf90bc
10 changed files with 248 additions and 39 deletions

View File

@@ -104,6 +104,12 @@ const moment = require('moment');
result = { id: parseInt(id), weight: parseInt(weight) };
break;
}
case 'cost': {
let [id, count] = arr;
if(isNaN(id) || isNaN(count)) throw new Error('data table format wrong');
result = { id: parseInt(id), count: parseInt(count)};
break;
}
}
return result;
};