修改问题

This commit is contained in:
zpc 2024-11-29 19:31:52 +08:00
parent fa8983d242
commit add717cbf6
3 changed files with 4 additions and 2 deletions

View File

@ -391,6 +391,7 @@ namespace CloudGaming.Code.Account
{
userInfoDto.IdCard = userInfoDto.IdCard.Substring(0, 4) + "*********" + userInfoDto.IdCard.Substring(userInfoDto.IdCard.Length - 4);
}
var userPlayGameTime = Dao.DaoPhone.Context.T_User_PlayGameTime.Where(it => it.UserId == _UserId).SumAsync(it => (int?)it.PlayTime);
return userInfoDto;
}
@ -531,7 +532,7 @@ namespace CloudGaming.Code.Account
Ip = HttpContextAccessor.HttpContext.GetClientIpAddress()
};
await this.UserConsumeDiamondMoneyAsync(UserCurrencyType., 10, "实名认证赠送");
await this.SendUserMessageAsync("实名认证赠送",$"实名认证成功!您已获得钻石*{10}");
await this.SendUserMessageAsync("实名认证赠送", $"实名认证成功!您已获得钻石*{10}");
await Dao.DaoUser.Context.T_User_LimitActionLog.AddAsync(limitActionLog);
await Dao.DaoUser.Context.SaveChangesAsync();

View File

@ -520,7 +520,7 @@ public class PlayGameBLL : CloudGamingBase
}
return null;
}
throw response.ToMessageBox();
return null;
}
/// <summary>

View File

@ -524,6 +524,7 @@ namespace CloudGaming.Code.Game
PlayTime = 0,
UpdateTime = DateTime.Now,
UserId = userId,
};
await dao.DaoPhone.Context.T_User_PlayGameTime.AddAsync(playGameTime);
}