feat(upserver): 保存M2客户端KV迁移至本人统计写检查点
保存独立KV用户服务、固定会话存档与原业务接线,以及C3d资料缓存和C3e本人统计写。 保留原PF/AGG路线、业务公式和时序;榜单读取、好友资料、公告、匹配及首场景闸仍待完成。 验证:ServiceHost两条件各33组646断言;Unity CLI Loop编译0错误269警告。 包含相关方案、评审裁决、测试及状态文档。未操作服务器、正式账号或打包。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using asap.core;
|
||||
using asap.core;
|
||||
using cfg;
|
||||
using game;
|
||||
using GameCore;
|
||||
@@ -10,6 +10,8 @@ using UnityEngine;
|
||||
|
||||
public class CampDataMM
|
||||
{
|
||||
[asap.core.Inject] public game.PlayerDataStorage.IPlayerSaveStore SaveStore { get; set; }
|
||||
|
||||
private cfg.Tables _tables;
|
||||
MMTService _MMService;
|
||||
public CampDataMM(cfg.Tables tables, MMTService mmService)
|
||||
@@ -142,7 +144,7 @@ public class CampDataMM
|
||||
_isFix = isFix;
|
||||
if (isSave)
|
||||
{
|
||||
PlayFabMgr.Instance.UpdateUserDataValue("IsFix", _isFix.ToString());
|
||||
SaveStore.Write("IsFix", _isFix.ToString()).RequireAccepted();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -248,7 +250,7 @@ public class CampDataMM
|
||||
UpdateCurrentData();
|
||||
}
|
||||
CampDataDic["CampId"] = Id;
|
||||
PlayFabMgr.Instance.UpdateUserDataValue("CampDataDic", JsonMapper.ToJson(CampDataDic)); ;
|
||||
SaveStore.Write("CampDataDic", JsonMapper.ToJson(CampDataDic)).RequireAccepted(); ;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -276,7 +278,7 @@ public class CampDataMM
|
||||
if (NextMapID == -1 || !_tables.TbConstruction.DataMap.ContainsKey(NextMapID))
|
||||
{
|
||||
_isOpenSkyscraper = "1";
|
||||
PlayFabMgr.Instance.UpdateUserDataValue("IsOpenSkyscraper", _isOpenSkyscraper);
|
||||
SaveStore.Write("IsOpenSkyscraper", _isOpenSkyscraper).RequireAccepted();
|
||||
return;
|
||||
}
|
||||
Debug.LogError(
|
||||
@@ -353,7 +355,7 @@ public class CampDataMM
|
||||
if (NextMapID == -1 || !_tables.TbConstruction.DataMap.ContainsKey(NextMapID))
|
||||
{
|
||||
_isOpenSkyscraper = "1";
|
||||
PlayFabMgr.Instance.UpdateUserDataValue("IsOpenSkyscraper", _isOpenSkyscraper);
|
||||
SaveStore.Write("IsOpenSkyscraper", _isOpenSkyscraper).RequireAccepted();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user