123456789101112131415161718192021222324252627 |
- using FL.Data;
- using XGame.Database;
- using XGame.Framework.Network;
- namespace FL.Network
- {
- public class ActPvePveIdPushCtrl : MsgController<ActPvePveIdPush>
- {
- protected override void OnProcess(ActPvePveIdPush message, object context)
- {
- var pveData = PveData.Instance;
- // 服务端记录的是已通关的章节id,新账号记录是零
- if (message.pveId > 0)
- {
- var chapter = ChapterTableRepo.Next(message.pveId);
- // 取下一关的id
- pveData.chapterId = chapter?.Id ?? message.pveId;
- }
- else
- {
- pveData.chapterId = 10010101;
- }
- pveData.pveId = message.pveId;
- pveData.fightKey = message.fightKey;
- }
- }
- }
|