注释掉一些log
This commit is contained in:
@@ -62,7 +62,7 @@ export class RechargeMoneyHandler {
|
||||
}
|
||||
|
||||
let notGetRecord = playerData.recordArr[0];
|
||||
console.log('notGetRecord', JSON.stringify(notGetRecord));
|
||||
// console.log('notGetRecord', JSON.stringify(notGetRecord));
|
||||
await ActivityRechargeMoneyModel.addRecord(notGetRecord._id, item.id, `${item.gid}&${item.count}`);
|
||||
let goods = await addItems(roleId, roleName, sid, [{ id: item.gid, count: item.count }], ITEM_CHANGE_REASON.RECHARGE_REWARD)
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ export class NormalBattleHandler {
|
||||
if (warInfo.warType == WAR_TYPE.COM_BATTLE) {
|
||||
return resResult(STATUS.BATTLE_END_WRONG_TYPE);
|
||||
}
|
||||
console.log('####### warInfo.warType', warInfo.warType)
|
||||
// console.log('####### warInfo.warType', warInfo.warType)
|
||||
|
||||
const BattleRecord = await BattleRecordModel.getBattleRecordByCode(battleCode, true);
|
||||
if (!BattleRecord || BattleRecord.status != 0) {
|
||||
@@ -255,7 +255,7 @@ export class NormalBattleHandler {
|
||||
await challengeDailyGK(serverId, roleId, activityId, battleId)
|
||||
}
|
||||
} else if (warInfo.warType == WAR_TYPE.ACT_NEW_HERO_GK) {
|
||||
console.log('##### warInfo.warType', warInfo.warType, isSuccess)
|
||||
// console.log('##### warInfo.warType', warInfo.warType, isSuccess)
|
||||
if (isSuccess) {
|
||||
isFirst = await challengeNewHeroGK(serverId, roleId, activityId, battleId)
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ export class GateActivityHandler {
|
||||
obj.setMemberRecord(code, newMemberRecord);
|
||||
|
||||
let nextWeek = <number>getTimeFun().getAfterDayWithHour(7);
|
||||
console.log('####### nextWeek', nextWeek)
|
||||
// console.log('####### nextWeek', nextWeek)
|
||||
let index = getGAIndexInPinus(this.aid);
|
||||
// 更新redis数据
|
||||
let myR = new Rank(REDIS_KEY.USER_GATE_ACTIVITY, { serverId, guildCode, index }, true);
|
||||
|
||||
@@ -283,7 +283,7 @@ export class GuildTrainHandler {
|
||||
let { trainInstances } = getArmyTrainJuDian(trainId);
|
||||
let trainInfo = getGuildTrainGkInfo(trainId, hid);
|
||||
let { progress } = findWhere(trainInstances, { hid });
|
||||
console.log('progress = ' + progress);
|
||||
// console.log('progress = ' + progress);
|
||||
let guildTrain = await GuildTrainModel.findTrainInstanceBoxByIndex(code, trainId, hid, progress);
|
||||
if (!guildTrain) {
|
||||
res.releaseCallback();//解锁
|
||||
|
||||
@@ -65,7 +65,7 @@ export async function getPlayerActivityData(activityId: number, serverId: number
|
||||
}
|
||||
let records = (playerSelfServerData && playerSelfServerData.challengeRecords) ? playerSelfServerData.challengeRecords : [];
|
||||
for (let record of records) {
|
||||
console.log(challengeBeginTime, challengeEndTime, record.time)
|
||||
// console.log(challengeBeginTime, challengeEndTime, record.time)
|
||||
if (record.time >= challengeBeginTime && record.time <= challengeEndTime) {
|
||||
playerData.challengeCount++;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ export async function sendRankMail(data: TimeLimitRankData, serverId: number) {
|
||||
let reward = data.getRewardByRank(rank);
|
||||
if(reward) {
|
||||
let guild = await GuildModel.findByCode(code, serverId, '+members');
|
||||
console.log(guild.members)
|
||||
// console.log(guild.members)
|
||||
for(let roleId of guild.members) {
|
||||
await sendMailByContent(MAIL_TYPE.TIME_LIMIT_RANK, roleId, {
|
||||
params: [data.tabName,`${rank}`],
|
||||
|
||||
@@ -39,7 +39,7 @@ export function getRandSeResult(id: number, randSe: RandSe[], originSe: RandSe[]
|
||||
randomResult.push(...allRandom);
|
||||
}
|
||||
|
||||
console.log('##### getRandSeResult', startId, effectCount)
|
||||
// console.log('##### getRandSeResult', startId, effectCount)
|
||||
|
||||
for (let i = startId; i < effectCount; i++) {
|
||||
if(randSe[i]) {
|
||||
|
||||
@@ -620,7 +620,7 @@ export async function sendGuildCityDeclare(cityId: number, declareGuildCode: str
|
||||
* @param serverId 区id
|
||||
*/
|
||||
export async function calWoodenHorseAndSend(serverId: number) {
|
||||
console.log('calWoodenHorseAndSend');
|
||||
// console.log('calWoodenHorseAndSend');
|
||||
let obj = getRaceActivityObj();
|
||||
return await obj.calServerHorses(serverId);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ export class WarReward {
|
||||
// let warType = this.warInfo.warType;
|
||||
|
||||
if(this.isSuccess) { // 成功了才给固定奖励
|
||||
console.log(this.fixReward)
|
||||
// console.log(this.fixReward)
|
||||
if(this.fixReward) this.handleFixReward(num);
|
||||
if(this.conditionReward) this.handleConditionReward(num);
|
||||
if(this.randomReward) await this.handleRandomReward(num);
|
||||
|
||||
Reference in New Issue
Block a user