修复问题

This commit is contained in:
zpc 2024-12-01 05:42:11 +08:00
parent 5381ffe387
commit 4861ae081a

View File

@ -65,16 +65,10 @@ namespace CloudGaming.Code.Game
UserPlayGameDiamonds = userInfo.Diamond,
SessionId = Guid.NewGuid().ToString("N"),
};
}
if (jYApiRespnse != null)
gameInfoCache.GameUserOperation.Add(new PlayGameUserOperation()
{
if (gameInfoCache.GameUserOperation == null)
{
gameInfoCache.GameUserOperation = new List<PlayGameUserOperation>();
}
gameInfoCache.GameUserOperation.Add(new PlayGameUserOperation(jYApiRespnse)
{
Content = "获取token",
Content = $"初始化游戏,用户剩余钻石{userInfo.Diamond}",
ActionId = (int)PlayGameStatus.,
OperationDateTime = DateTime.Now,
});
}
@ -112,6 +106,12 @@ namespace CloudGaming.Code.Game
if (playGameUserInfo.GameStatus == PlayGameStatus.)
{
playGameUserInfo.GameStatus = PlayGameStatus.;
playGameUserInfo.GameUserOperation.Add(new PlayGameUserOperation()
{
Content = $"启动游戏",
ActionId = (int)PlayGameStatus.,
OperationDateTime = DateTime.Now,
});
}
return true;
}