🐞 fix(gvg): 征战中原遗迹上加字段

This commit is contained in:
luying
2023-02-09 16:53:50 +08:00
parent 988ac615ee
commit e1004d4960
2 changed files with 14 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ import { RewardInter } from "../../../pubUtils/interface";
import { getGVGCities, getGVGCitiesInfo } from "../../../services/gvg/gvgBattleService";
import { GVGRecModel } from "../../../db/GVGRec";
import { checkGVGTask } from "../../../services/task/taskService";
import { getFightTimeByPeriod, getVestiges } from "../../../services/gvg/gvgFightService";
import { getFightTimeByPeriod, getMyVestiges, getVestiges } from "../../../services/gvg/gvgFightService";
import { getSeconds } from "../../../pubUtils/timeUtil";
export default function (app: Application) {
@@ -78,6 +78,7 @@ export class GVGHandler {
}
async getMap(msg: {}, session: BackendSession) {
const roleId = session.get('roleId');
const serverId = session.get('serverId');
const guildCode = session.get('guildCode');
@@ -88,7 +89,7 @@ export class GVGHandler {
let { startFightTime, endFightTime } = getFightTimeByPeriod(period);
let cities = await getGVGCitiesInfo(myLeague);
let vestiges = await getVestiges(serverId);
let vestiges = await getMyVestiges(serverId, roleId);
return resResult(STATUS.SUCCESS, {
configId, period, countdownTime, startFightTime, endFightTime,