🐞 fix(gvg): 遗迹使用元宝挑战次数无奖励

This commit is contained in:
luying
2023-03-27 19:37:39 +08:00
parent 21f9bed829
commit f7e1d627f5
2 changed files with 9 additions and 3 deletions

View File

@@ -58,6 +58,12 @@ export function calFighterContribute(obj: { score: number }) {
return obj?.score||0
}
export async function getGVGActive(leagueCode: string, roleId: string) {
let { configId } = getGVGConfig();
let result = await GVGUserDataModel.findByRole(configId, leagueCode, roleId);
return result?.active||0;
}
/**
* 获得活跃
* @param leagueCode