From 3c100b6ae88197ac5d88644b71bafd8311f447af Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Fri, 22 Jan 2021 15:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BB=E5=AE=9D=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BB=93=E7=AE=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/comBattleHandler.ts | 2 +- shared/db/EquipPrintDrop.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game-server/app/servers/battle/handler/comBattleHandler.ts b/game-server/app/servers/battle/handler/comBattleHandler.ts index 37f104606..702f67ca1 100644 --- a/game-server/app/servers/battle/handler/comBattleHandler.ts +++ b/game-server/app/servers/battle/handler/comBattleHandler.ts @@ -17,7 +17,7 @@ import { ItemModel } from '../../../db/Item'; import { handleFixedReward, addItems, handleCost, decreaseItems } from '../../../services/rewardService'; import { checkRoleInQueue, getTeamSearchByQuality, rmRoleFromQueue, setTeamSearchReq } from '../../../services/redisService'; import { transBossHpArr } from '../../../services/battleService'; -import { getRandBlueprtId, getRandComBtlRobots, checkComBattleResult, clearComBtlTimer, getRealReward, getAssistTimesByQuality, getFrd, updateRobotHurt, updateRobotHurtByTime, comBtlLvInvalid, clearRobotHurtTimer, setDismissTimer, dismissTeam, incEquipPrintDrop, randEquipPrintId } from '../../../services/comBattleService'; +import { getRandBlueprtId, getRandComBtlRobots, checkComBattleResult, clearComBtlTimer, getRealReward, getAssistTimesByQuality, getFrd, updateRobotHurtByTime, comBtlLvInvalid, clearRobotHurtTimer, setDismissTimer, dismissTeam, incEquipPrintDrop, randEquipPrintId } from '../../../services/comBattleService'; import { setAp } from '../../../services/actionPointService'; import { roleLevelup } from '../../../services/normalBattleService'; diff --git a/shared/db/EquipPrintDrop.ts b/shared/db/EquipPrintDrop.ts index 152bce421..3a83ba2bd 100644 --- a/shared/db/EquipPrintDrop.ts +++ b/shared/db/EquipPrintDrop.ts @@ -37,7 +37,7 @@ export default class EquipPrintDrop extends BaseModel { } public static async createDoc(docData: EquipPrintDropType, lean = true) { - return await EquipPrintDropModel.findOneAndUpdate({}, {...docData}, {upsert: true, new: true}).lean(lean); + return await EquipPrintDropModel.findOneAndUpdate({roleId: docData.roleId}, {...docData}, {upsert: true, new: true}).lean(lean); } public static async updateDoc(roleId: string, docData: Partial, lean = true) {