提交代码
This commit is contained in:
parent
e75ab989a8
commit
e4e61b1627
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user