边窗:系统参数表
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user