边窗:系统参数表
This commit is contained in:
@@ -20,7 +20,7 @@ import { setAp } from '../../../services/actionPointService';
|
||||
import { roleLevelup } from '../../../services/normalBattleService';
|
||||
import { getSimpleRoleInfo } from '../../../services/roleService';
|
||||
import { pushComBtlTeamMsg, pushFriendTeamInviteMsg, pushNormalItemMsg, pushTeamInviteMsg } from '../../../services/chatService';
|
||||
import { EXTERIOR } from '../../../pubUtils/dicParam';
|
||||
import { EXTERIOR, INFO_WINDOW } from '../../../pubUtils/dicParam';
|
||||
import { getZeroPointD, getTimeFunD, getSeconds, nowSeconds } from '../../../pubUtils/timeUtil';
|
||||
import { FriendParams } from '../../../domain/roleField/friend';
|
||||
import { checkTask, checkTaskInComBattleStart } from '../../../services/task/taskService';
|
||||
@@ -763,8 +763,8 @@ export class ComBattleHandler {
|
||||
const assistCnt = await getAllAssistCnt(roleId);
|
||||
|
||||
let { minLv, maxLv } = getComBtlLvByPlayerLv(role.lv);
|
||||
let refreshTime = nowSeconds() - 60;
|
||||
const invitations = await ComBattleTeamModel.findInvitations(roleId, minLv, maxLv, role.topLineupCe, refreshTime, 10);
|
||||
let refreshTime = nowSeconds() - INFO_WINDOW.TEAM_INFORMATION_TIME;
|
||||
const invitations = await ComBattleTeamModel.findInvitations(roleId, minLv, maxLv, role.topLineupCe, refreshTime, INFO_WINDOW.TEAM_VIEW);
|
||||
let roleIds = invitations.map(cur => cur.capId);
|
||||
let roles = await RoleModel.findByRoleIds(roleIds);
|
||||
const teams: ComBattleInvitation[] = [];
|
||||
|
||||
@@ -45,6 +45,7 @@ import { pick } from 'underscore';
|
||||
import { sendMessageToAllWithSuc, sendMessageToServerWithSuc, sendMessageToUser, sendMessageToUserWithSuc } from './pushService';
|
||||
import { getSurvey } from './gmService';
|
||||
import { ComBattleTeamModel } from '../db/ComBattleTeam';
|
||||
import { INFO_WINDOW } from '../pubUtils/dicParam';
|
||||
|
||||
/**
|
||||
* init: 初始的时候是否推送 true-推 false-不推
|
||||
@@ -293,7 +294,7 @@ async function getComBattleEntryData(role: RoleType) {
|
||||
const assistCnt = await getAllAssistCnt(roleId);
|
||||
const blueprts = await Item.findByRoleAndType(roleId, CONSUME_TYPE.BLUEPRT);
|
||||
let { minLv, maxLv } = getComBtlLvByPlayerLv(lv);
|
||||
let refreshTime = nowSeconds() - 60;
|
||||
let refreshTime = nowSeconds() - INFO_WINDOW.TEAM_INFORMATION_TIME;
|
||||
const invitations = await ComBattleTeamModel.findInvitations(roleId, minLv, maxLv, topLineupCe, refreshTime, 1);
|
||||
return { assistCnt, blueprts, hasInvitation: invitations.length > 0, invitationTime: invitations.length > 0?invitations[0].inviteTime: 0 }
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export const PVP = {
|
||||
PVP_CHALLENGE_COUNTS: 5, // pvp初始挑战次数
|
||||
PVP_CHALLENGE_NORMALTIMES: 240, // pvp日常挑战次数刷新时间(分钟)
|
||||
PVP_CHALLENGE_FINALTIMES: 240, // PVP赛季最后一天挑战次数刷新时间(分钟)
|
||||
PVP_SEASON_DAYS: '1&30|2&30|3&30|4&30', // PVP一个赛季的时间
|
||||
PVP_SEASON_DAYS: '1&7|2&30|3&30|4&30', // PVP一个赛季的时间
|
||||
PVP_OPPONENT_FREEREFRESH: 3, // pvp挑战对手每日免费刷新次数
|
||||
PVP_WINREWARD_UPLIMIT: 10, // 连胜奖励军功加成上限
|
||||
PVP_LINEUP_HEROS: 6, // pvp最多上阵人数
|
||||
|
||||
Reference in New Issue
Block a user