🐞 fix(gvg): 云台今日贡献的驻扎分显示
This commit is contained in:
@@ -23,6 +23,7 @@ import { GVGRecModel } from "../../../db/GVGRec";
|
||||
import { checkGVGTask } from "../../../services/task/taskService";
|
||||
import { getFightTimeByPeriod, getMyVestiges, getVestiges } from "../../../services/gvg/gvgFightService";
|
||||
import { getSeconds } from "../../../pubUtils/timeUtil";
|
||||
import { GVGVestigeRankModel } from "../../../db/GVGVestigeRank";
|
||||
|
||||
export default function (app: Application) {
|
||||
new HandlerService(app, {});
|
||||
@@ -202,9 +203,10 @@ export class GVGHandler {
|
||||
}
|
||||
|
||||
const userDailyData = await GVGUserDailyDataModel.findByRole(configId, myLeague.leagueCode, roleId);
|
||||
const myRanks = await GVGVestigeRankModel.findAllByRole(roleId);
|
||||
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
myDistribute: getMyDistribute(userDailyData),
|
||||
myDistribute: getMyDistribute(userDailyData, myRanks),
|
||||
list: result
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user