全局:清理部分console

This commit is contained in:
luying
2021-04-13 17:30:51 +08:00
parent 4d14bc2676
commit 95adc48d2a
20 changed files with 25 additions and 28 deletions

View File

@@ -68,7 +68,6 @@ export class WoodenHorse {
* @returns {boolean} needSendEnd 是否跑到终点发送结束新号
*/
public calCurWoodenHorse(events: Event[]): boolean {
console.log('**', this.guildName, this.status, this.distance, Date.now(), this.speed, JSON.stringify(events))
if(this.status == 2) return false; // TODO 写进const表
if(this.status == 0 && this.stopContinueTime && Date.now() > this.stopContinueTime) {
this.status = 1; this.stopContinueTime = 0;
@@ -121,7 +120,6 @@ export class WoodenHorse {
this.status = 0; // TODO 写进const表
this.speed = 0;
}
console.log('**effect', this.speed, JSON.stringify(effectiveEvents));
return false;
}

View File

@@ -95,7 +95,6 @@ export class GuildRankParam {
this.name = guild.name;
this.lv = guild.lv;
let leader = <RoleType>guild.leader;
console.log('**', JSON.stringify(leader))
let _leader = new GuildLeader(leader);
this.leader = _leader;
this.memberCnt = guild.memberCnt;
@@ -179,7 +178,7 @@ export class SimpleGuildRankWithTimeParam extends SimpleGuildRankParam {
constructor(rank: number, code: string, name: string, obj: WoodenHorse|{distance: number, time: number, startTime: number, durability: number}|false) {
super(rank, code, name, obj?obj.distance:0);
console.log(JSON.stringify(obj));
// console.log(JSON.stringify(obj));
if(obj) {
this.num = obj.distance;
this.time = Math.floor((obj.time - obj.startTime)/1000);