升级,升星,升品,升彩星
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user