提交代码

This commit is contained in:
zpc 2024-11-19 19:53:05 +08:00
parent e75ab989a8
commit e4e61b1627
2 changed files with 1 additions and 2 deletions

View File

@ -138,7 +138,6 @@ namespace CloudGaming.Api.Controllers
/// </summary>
/// <returns></returns>
[HttpGet]
[RedisCache(10, 0)]
public async Task<GamePlayTimeInfoDto> GamePlayTimeList([FromQuery] string gameId)
{
GameBLL gamebll = new GameBLL(this.ServiceProvider);

View File

@ -287,7 +287,7 @@ namespace CloudGaming.Code.Game
var user = userInfo.FirstOrDefault(item => item.Id == it.UserId);
GamePlayTimeDto gamePlayTimeDto = new GamePlayTimeDto()
{
PlayTime = $"{(it.PlayTime / 60).ToString("0.##")}小时",
PlayTime = $"{(it.PlayTime / 60.0).ToString("0.##")}小时",
UserIcon = user?.UserIconUrl ?? AppConfig.UserConfig.UserIconUrl,
UserName = user?.NickName ?? AppConfig.UserConfig.NickName,
UserId = it.UserId,