活动:寻宝骑兵活动固定关卡id
This commit is contained in:
@@ -10,6 +10,7 @@ import { RewardParam } from '../../../domain/activityField/rewardField';
|
||||
import { ActivityTreasureHuntTreasureShopModel } from '../../../db/ActivityTreasureHuntTreasureShop';
|
||||
import { ActivityTreasureHuntFirstPageModel } from '../../../db/ActivityTreasureHuntFirstPage';
|
||||
import { CheckMeterial } from '../../../services/role/checkMaterial';
|
||||
import { ActivityTreasureHuntChallengeModel } from '../../../db/ActivityTreasureHuntChallenge';
|
||||
|
||||
|
||||
export default function (app: Application) {
|
||||
@@ -218,7 +219,11 @@ export class TreasureHuntHandler {
|
||||
let isEnough = await check.decrease(consume);
|
||||
if (!isEnough) return resResult(STATUS.ROLE_MATERIAL_NOT_ENOUGH);
|
||||
|
||||
let warId = playerData.challenge.randomGK();
|
||||
let warId = playerData.challenge.resultWarId;
|
||||
if(!warId) {
|
||||
warId = playerData.challenge.randomGK();
|
||||
await ActivityTreasureHuntChallengeModel.setWarId(serverId, activityId, roleId, huntRoundIndex, warId);
|
||||
}
|
||||
|
||||
return resResult(STATUS.SUCCESS, Object.assign({ warId }, {
|
||||
param: { activityId },
|
||||
|
||||
Reference in New Issue
Block a user