活动:弹出礼包debug
This commit is contained in:
@@ -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');
|
const roleId = session.get('roleId');
|
||||||
let serverId = session.get('serverId');
|
let serverId = session.get('serverId');
|
||||||
const { magicWord, conditionType } = msg;
|
const { magicWord, conditionType, param } = msg;
|
||||||
if (magicWord !== DEBUG_MAGIC_WORD) {
|
if (magicWord !== DEBUG_MAGIC_WORD) {
|
||||||
return resResult(STATUS.TOKEN_ERR);
|
return resResult(STATUS.TOKEN_ERR);
|
||||||
}
|
}
|
||||||
@@ -126,8 +126,11 @@ export class PopUpShopHandler {
|
|||||||
|
|
||||||
let arr = await checkPopUpCondition(serverId, roleId, conditionType, {
|
let arr = await checkPopUpCondition(serverId, roleId, conditionType, {
|
||||||
oldLv: 0,
|
oldLv: 0,
|
||||||
newLv: 100,
|
newLv: param||100,
|
||||||
quality: 3,
|
quality: param||3,
|
||||||
|
warId: param||128,
|
||||||
|
score: param||10,
|
||||||
|
equipStar: param||10
|
||||||
});
|
});
|
||||||
|
|
||||||
return resResult(STATUS.SUCCESS, { activities:arr });
|
return resResult(STATUS.SUCCESS, { activities:arr });
|
||||||
|
|||||||
Reference in New Issue
Block a user