山河社稷图分页 新分页新章节
parent
e7659a1b08
commit
64b06e4c89
|
@ -41,6 +41,7 @@ import rpc.protocols.PlayerInfoProto;
|
|||
import util.TimeUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -246,6 +247,16 @@ public class StartHardStageRequestHandler extends BaseHandler<PlayerInfoProto.Ha
|
|||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.HARD_STAGE_FIGHT_START_RESPONSE.getNumber(), fightStartResponse.build(), true);
|
||||
//更新消息
|
||||
HardStageLogic.sendHardStageIndication(user,page);
|
||||
|
||||
//开新分页 新章的时候 推送刷新消息
|
||||
int maxChapter = chapterMap.keySet().stream().max(Comparator.comparing(Integer::intValue)).orElse(0);
|
||||
if(maxChapter%10==1){
|
||||
int nextPage = maxChapter%10 == 0? maxChapter/10:maxChapter/10+1;
|
||||
if(nextPage!=page){
|
||||
//更新消息
|
||||
HardStageLogic.sendHardStageIndication(user,nextPage);
|
||||
}
|
||||
}
|
||||
//埋点数据
|
||||
ReportUtil.onReportEvent(user, ReportEventEnum.HARD_STAGE.getType(),logType ,logSectionId ,String.valueOf(logResult) ,logStarNum );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue