clear:线上版本,删除一些不需要的log

This commit is contained in:
luying
2022-06-06 11:37:26 +08:00
parent f82f74aa50
commit 17bcbe7804
12 changed files with 16 additions and 16 deletions
@@ -121,7 +121,7 @@ export async function getDailyNum(dailyRecord: DailyRecord, role?: RoleType) {
role = await RoleModel.findByRoleId(roleId, 'vipStartTime');
}
timesPerDay = getVipDailyCnt(timesPerDay, role);
console.log('###### getDailyNum', timesPerDay, count, buyCount, timesCanBuy)
// console.log('###### getDailyNum', timesPerDay, count, buyCount, timesCanBuy)
return {count: timesPerDay - count + buyCount, buyCount: timesCanBuy - buyCount}
}
+1 -1
View File
@@ -86,7 +86,7 @@ export function getEventTime(now: Date) {
export async function startEvent(session: FrontendOrBackendSession) {
const eventStatus = session.get('eventStatus');
console.log('*******startEvent ', eventStatus)
// console.log('*******startEvent ', eventStatus)
if(eventStatus == EVENT_STATUS.WAITING) {
let roleId = session.get('roleId');
let roleName = session.get('roleName');
+1 -1
View File
@@ -216,7 +216,7 @@ export async function refreshUserGuild(userGuild: UserGuildType, roleId: string)
const now = new Date();
let isRefDaily = shouldRefresh(refTimeDaily, now);
console.log('####### isRefDaily', isRefDaily, refTimeDaily, now)
// console.log('####### isRefDaily', isRefDaily, refTimeDaily, now)
if (isRefDaily) {
if(refTimeDaily) {
await sendUnreceivedWishPool(wishGoods, roleId);
+1 -1
View File
@@ -237,7 +237,7 @@ export class SendMailFun {
// 生成全服邮件
public async createServerMails(code: string, serverIds: number[]) {
let mapTemp = this.mailTemps.get(code);
console.log('###### createServerMails 1', code, this.mailTemps, mapTemp)
// console.log('###### createServerMails 1', code, this.mailTemps, mapTemp)
if(mapTemp.sendTime < nowSeconds()) return;
for(let serverId of serverIds) {
let originMail = await ServerMailModel.addMail({ serverId, ...mapTemp.getCreateMailParams() });
+1 -1
View File
@@ -69,7 +69,7 @@ export async function calculateCes(type: HERO_SYSTEM_TYPE, roleId: string, serve
calCe.setJob(hid, job, jobStage);
calCe.setTalent(hid, skins)
}
console.log('####### roleUpdate', param.isInitRole, roleUpdate)
// console.log('####### roleUpdate', param.isInitRole, roleUpdate)
if(param.isInitRole) {
let { title, teraphs, lv } = roleUpdate;
calCe.setRoleLv(lv)
+1 -1
View File
@@ -70,7 +70,7 @@ export class CalCe {
public getCeInc() {
let ceResult = this.calHeroCe();
console.log('##### ceResult', ceResult, 'originCes', this.originCes)
// console.log('##### ceResult', ceResult, 'originCes', this.originCes)
let heroCe = new Map<number, { inc: number, origin: number, ce: number }>();
let roleInc = 0;
for(let [hid, ce] of ceResult) {