diff --git a/game-server/app/servers/activity/handler/popUpShopHandler.ts b/game-server/app/servers/activity/handler/popUpShopHandler.ts index 5b5ba3b21..cdebc86a6 100644 --- a/game-server/app/servers/activity/handler/popUpShopHandler.ts +++ b/game-server/app/servers/activity/handler/popUpShopHandler.ts @@ -106,10 +106,10 @@ export class PopUpShopHandler { }); } - async debugPushPopUpShop(msg: { conditionType: number, magicWord: string }, session: BackendSession) { + async debugPushPopUpShop(msg: { conditionType: number, magicWord: string, param: number }, session: BackendSession) { const roleId = session.get('roleId'); let serverId = session.get('serverId'); - const { magicWord, conditionType } = msg; + const { magicWord, conditionType, param } = msg; if (magicWord !== DEBUG_MAGIC_WORD) { return resResult(STATUS.TOKEN_ERR); } @@ -126,8 +126,11 @@ export class PopUpShopHandler { let arr = await checkPopUpCondition(serverId, roleId, conditionType, { oldLv: 0, - newLv: 100, - quality: 3, + newLv: param||100, + quality: param||3, + warId: param||128, + score: param||10, + equipStar: param||10 }); return resResult(STATUS.SUCCESS, { activities:arr });