天天0.1折,开启条件判断
parent
b7e05622ca
commit
29805f877a
|
|
@ -16,6 +16,7 @@ import com.ljsd.jieling.handler.BaseHandler;
|
|||
import com.ljsd.jieling.handler.map.behavior.BehaviorUtil;
|
||||
import com.ljsd.jieling.ktbeans.ReportEventEnum;
|
||||
import com.ljsd.jieling.ktbeans.ReportUtil;
|
||||
import com.ljsd.jieling.logic.activity.event.EveryDayDiscountUnlockEvent;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.activity.event.ShanHeSheJiTuStarEvent;
|
||||
import com.ljsd.jieling.logic.dao.TeamEnum;
|
||||
|
|
@ -117,7 +118,7 @@ public class StartHardStageRequestHandler extends BaseHandler<PlayerInfoProto.Ha
|
|||
user.getHardStageManager().updateString("chapterMap." + nodeConfig.getChapter(), chapterMap.get(nodeConfig.getChapter()));
|
||||
}
|
||||
} else if (nodeConfig.getStageType() == 1 || nodeConfig.getStageType() == 3) {
|
||||
if (teamPosHeroInfos == null || teamPosHeroInfos.size() == 0) {
|
||||
if (teamPosHeroInfos == null || teamPosHeroInfos.isEmpty()) {
|
||||
throw new ErrorCodeException(ErrorCode.newDefineCode("阵容有误!!"));
|
||||
}
|
||||
if (nodeConfig.getStageType() == 1) {
|
||||
|
|
@ -214,6 +215,7 @@ public class StartHardStageRequestHandler extends BaseHandler<PlayerInfoProto.Ha
|
|||
//排行榜章节
|
||||
int hardStageId = SHardStage.getStageIdByChapterAndSection(user.getHardStageManager().getCurChapter(), user.getHardStageManager().getCurNode());
|
||||
Poster.getPoster().dispatchEvent(new ShanHeSheJiTuStarEvent(iSession.getUid(), 1, hardStageId));
|
||||
Poster.getPoster().dispatchEvent(new EveryDayDiscountUnlockEvent(user.getId()));
|
||||
|
||||
ItemUtil.dropByGroup(user, dropList.stream().mapToInt(Integer::intValue).toArray(), drop, 1, BIReason.HARD_STAGE_GET);
|
||||
fightStartResponse.setDrop(drop);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class HardStageManager extends MongoBase {
|
|||
}
|
||||
|
||||
public Map<Integer, HardStageChapter> getChapterMap(User user) throws Exception {
|
||||
if (null == chapterMap || chapterMap.size() <1) {
|
||||
if (null == chapterMap || chapterMap.isEmpty()) {
|
||||
Map<Integer, HardStageChapter> map = initChapterMap(user);
|
||||
setChapterMap(map);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue