清理一些console

This commit is contained in:
luying
2022-01-12 09:43:26 +08:00
parent cad2ff5c9b
commit 885fd2d239
25 changed files with 56 additions and 64 deletions
+2 -2
View File
@@ -39,13 +39,13 @@ export default class HangUpRecord extends BaseModel {
received: boolean; // 是否已经领取,true-领取,false-未领取
public static async initRecord(roleId: string, roleName: string, lean = true) {
console.log('****** initRecord before')
// console.log('****** initRecord before')
const curTime = new Date();
const recDoc = new HangUpRecordModel();
const update = Object.assign(recDoc.toJSON(), {roleId, roleName, startTime: curTime, startLv: dicParam.TOWER_HANG_UP.TOWER_HANG_UP_ENABLE_LV + 1});
const rec: HangUpRecordType = await HangUpRecordModel.findOneAndUpdate({roleId, startLv: dicParam.TOWER_HANG_UP.TOWER_HANG_UP_ENABLE_LV + 1}, { $setOnInsert: update }, {upsert: true, new: true}).lean(lean);
console.log('****** initRecord after')
// console.log('****** initRecord after')
return rec;
}