🐞 fix(gvg): 征战中原遗迹上加字段
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user