功能

  • GetPlayerToken时即更新全部stage信息到session中(会卡一段时间大约1分钟,不过没有别的bug);

    • 需要修改,应该是session每次都是更新客户端请求的StageId,然后有新的就存储到数据库。这样和正常的更像一些,而且不会开局卡。初始时创建StageId:101和10101,然后后面就通关一次创建下一关就可以了。
  • 添加数据库存储相关信息

  • 返回关卡基本信息

数据结构

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
GetStageDataReq: {
uint[] StageIdLists,
}
GetStageDataRsp: {
Retcode retcode,
List<Stage> StageLists,
List<StageEventData> EventDataLists,
bool IsAll,
}
Stage: {
uint LevelId,
uint Progress,
uint EnterTimes,
uint ResetTimes,
uint[] ChallengeIndexLists,
uint BonusEndTime,
uint BonusTotalTimes,
uint MinStageTime,
uint MaxScore,
uint StaminaDiscount,
uint TotalScore,
uint MpRaidPassAvatarUid,
uint MpRaidWeaponUid,
uint[] MpRaidStigmataUidSets,
bool IsDone,
uint AssistEnterTimes,
uint[] BackupChallengeIndexLists,
uint MaxBallteScore,
uint MaxRank,
string ClientData,
uint FirstStaminaDiscount,
}
StageEventData: {
uint BeginTime,
uint EndTime,
uint ChapterId,
uint UnlockLevel,
}