diff --git a/src/CloudGaming/Code/CloudGaming.Code/Account/AccountBLL.cs b/src/CloudGaming/Code/CloudGaming.Code/Account/AccountBLL.cs index f6e79af..73091d4 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Account/AccountBLL.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Account/AccountBLL.cs @@ -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(); diff --git a/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameBLL.cs b/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameBLL.cs index 91e49cc..5eadadc 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameBLL.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameBLL.cs @@ -520,7 +520,7 @@ public class PlayGameBLL : CloudGamingBase } return null; } - throw response.ToMessageBox(); + return null; } /// diff --git a/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameExtend.cs b/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameExtend.cs index c60a335..6172493 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameExtend.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Game/PlayGameExtend.cs @@ -524,6 +524,7 @@ namespace CloudGaming.Code.Game PlayTime = 0, UpdateTime = DateTime.Now, UserId = userId, + }; await dao.DaoPhone.Context.T_User_PlayGameTime.AddAsync(playGameTime); }