修复问题
This commit is contained in:
parent
5381ffe387
commit
4861ae081a
|
|
@ -65,16 +65,10 @@ namespace CloudGaming.Code.Game
|
|||
UserPlayGameDiamonds = userInfo.Diamond,
|
||||
SessionId = Guid.NewGuid().ToString("N"),
|
||||
};
|
||||
}
|
||||
if (jYApiRespnse != null)
|
||||
{
|
||||
if (gameInfoCache.GameUserOperation == null)
|
||||
gameInfoCache.GameUserOperation.Add(new PlayGameUserOperation()
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user