updated 数据微调

This commit is contained in:
PASSER-BY
2023-08-17 11:19:34 +08:00
parent a2d206f4e5
commit e6d3f09d4d
4 changed files with 6 additions and 7 deletions

View File

@@ -73,9 +73,8 @@ export function filterId(arr){
// 通过ID获取世代数
export function getGenById(id){
let gMap = {'f':1,'m':1,'s':-1,'d':-1};
let arr = id.split(',');
let gen = 0;
arr.forEach(function(sub){
id.split(',').forEach(function(sub){
let s = sub.replace(/&[ol\d]+/,'');
gen += gMap[s]||0;
});