修复问题
This commit is contained in:
parent
5381ffe387
commit
4861ae081a
|
|
@ -65,16 +65,10 @@ namespace CloudGaming.Code.Game
|
||||||
UserPlayGameDiamonds = userInfo.Diamond,
|
UserPlayGameDiamonds = userInfo.Diamond,
|
||||||
SessionId = Guid.NewGuid().ToString("N"),
|
SessionId = Guid.NewGuid().ToString("N"),
|
||||||
};
|
};
|
||||||
}
|
gameInfoCache.GameUserOperation.Add(new PlayGameUserOperation()
|
||||||
if (jYApiRespnse != null)
|
|
||||||
{
|
|
||||||
if (gameInfoCache.GameUserOperation == null)
|
|
||||||
{
|
{
|
||||||
gameInfoCache.GameUserOperation = new List<PlayGameUserOperation>();
|
Content = $"初始化游戏,用户剩余钻石{userInfo.Diamond}",
|
||||||
}
|
ActionId = (int)PlayGameStatus.初始化,
|
||||||
gameInfoCache.GameUserOperation.Add(new PlayGameUserOperation(jYApiRespnse)
|
|
||||||
{
|
|
||||||
Content = "获取token",
|
|
||||||
OperationDateTime = DateTime.Now,
|
OperationDateTime = DateTime.Now,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -112,6 +106,12 @@ namespace CloudGaming.Code.Game
|
||||||
if (playGameUserInfo.GameStatus == PlayGameStatus.初始化)
|
if (playGameUserInfo.GameStatus == PlayGameStatus.初始化)
|
||||||
{
|
{
|
||||||
playGameUserInfo.GameStatus = PlayGameStatus.启动游戏;
|
playGameUserInfo.GameStatus = PlayGameStatus.启动游戏;
|
||||||
|
playGameUserInfo.GameUserOperation.Add(new PlayGameUserOperation()
|
||||||
|
{
|
||||||
|
Content = $"启动游戏",
|
||||||
|
ActionId = (int)PlayGameStatus.启动游戏,
|
||||||
|
OperationDateTime = DateTime.Now,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user