fix: 多流派评分覆盖默认规则错误

This commit is contained in:
UCPr 2025-08-15 16:06:47 +08:00
parent 5e669f0afd
commit ea1f5195b5
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export function formatScoreWeight(oriScoreWeight) {
if (typeof oriScoreWeight !== 'object') return false;
const weight = {};
for (const propName in oriScoreWeight) {
if (!oriScoreWeight[propName])
if (!oriScoreWeight[propName] && oriScoreWeight[propName] !== 0)
continue;
const propID = +propName || nameToId(propName);
if (!propID)