fix:新增头像激活条件

This commit is contained in:
yushunrui 2024-01-11 21:05:52 +08:00
parent 748da2a3e9
commit 9484a696b3

View File

@ -37,7 +37,7 @@ export class UserShared {
// else if (conf.cond[0] == 'time') return collection.active[fmtId] == -1 || collection.active[fmtId] > G.time; // else if (conf.cond[0] == 'time') return collection.active[fmtId] == -1 || collection.active[fmtId] > G.time;
else if (conf.cond[0] == 'time') return conf.cond[1] == -1 || collection.active?.[fmtId] > G.time; else if (conf.cond[0] == 'time') return conf.cond[1] == -1 || collection.active?.[fmtId] > G.time;
else if (conf.cond[0] == 'model') return Object.values(collection.model).find(i => i.id == conf.cond[1]); else if (conf.cond[0] == 'model') return Object.values(collection.model).find(i => i.id == conf.cond[1]);
else if (conf.cond[0] == 'heroskin') return collection.heroskin[conf.cond[1]]; else if (conf.cond[0] == 'heroskin') return conf.cond[1] in collection.heroskin;
else return false; else return false;
} }
} }