修改问题
This commit is contained in:
parent
bd79a1340e
commit
2ce497c52f
|
|
@ -286,7 +286,7 @@ public class PlayGameBLL : CloudGamingBase
|
|||
//重置一下用户钻石
|
||||
playGameHeartbeatResponse.Diamond = userInfo.Diamond;
|
||||
|
||||
gameInfoCache.PlayGameHeartbeat($";累计扣除钻石*{gameInfoCache.SpendingDiamonds};用户剩余钻石*{userInfo.Diamond};当前游戏每分钟消耗钻石*{diamondNumHour.ToString("0.##")}");
|
||||
gameInfoCache.PlayGameHeartbeat($";累计扣除钻石*{gameInfoCache.SpendingDiamonds};用户剩余钻石*{userInfo.Diamond};当前游戏每分钟消耗钻石*{diamondNumHour.ToString("0.##")};上一次扣费时间:{gameInfoCache.LastChargingAt?.ToString("yyyy-MM-dd HH:mm:ss")}");
|
||||
await gameInfoCache.SaveChangesAsync(this);
|
||||
}
|
||||
else
|
||||
|
|
|
|||
|
|
@ -202,7 +202,7 @@ namespace CloudGaming.Code.Game
|
|||
{
|
||||
OperationDateTime = DateTime.Now,
|
||||
Content = "用户游戏掉线重连成功",
|
||||
ActionId = (int)PlayGameStatus.游戏掉线结束
|
||||
ActionId = (int)PlayGameStatus.游戏中
|
||||
});
|
||||
}
|
||||
playGameUserInfo.GameStatus = PlayGameStatus.游戏中;
|
||||
|
|
@ -430,7 +430,7 @@ namespace CloudGaming.Code.Game
|
|||
playGameUserInfo.GameStatus = PlayGameStatus.排队掉线结束游戏;
|
||||
playGameUserInfo.GameUserOperation.Add(new PlayGameUserOperation(jYApiRespnse)
|
||||
{
|
||||
Content = $"用户排队掉线,上一次排队时间{playGameUserInfo.LastPlayQueueAt?.ToString("yyyy-MM-dd HH:mm:ss")};准备结束游戏;",
|
||||
Content = $"用户排队掉线后未上线,上一次排队时间{playGameUserInfo.LastPlayQueueAt?.ToString("yyyy-MM-dd HH:mm:ss")};准备结束游戏;",
|
||||
OperationDateTime = DateTime.Now,
|
||||
ActionId = (int)playGameUserInfo.GameStatus
|
||||
});
|
||||
|
|
@ -444,12 +444,12 @@ namespace CloudGaming.Code.Game
|
|||
/// <returns></returns>
|
||||
public static bool PlayGameDiaoXian(this PlayGameUserInfo playGameUserInfo, IJYApiRespnse jYApiRespnse)
|
||||
{
|
||||
playGameUserInfo.GameStatus = PlayGameStatus.游戏掉线结束;
|
||||
playGameUserInfo.GameStatus = PlayGameStatus.游戏掉线结束游戏;
|
||||
playGameUserInfo.GameUserOperation.Add(new PlayGameUserOperation(jYApiRespnse)
|
||||
{
|
||||
Content = $"用户游戏掉线,准备结束游戏",
|
||||
Content = $"用户游戏掉线后未上线,准备结束游戏;",
|
||||
OperationDateTime = DateTime.Now,
|
||||
ActionId = (int)PlayGameStatus.游戏掉线
|
||||
ActionId = (int)PlayGameStatus.游戏掉线结束游戏
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
|
@ -579,7 +579,7 @@ namespace CloudGaming.Code.Game
|
|||
playGameUserInfo.GameStatus == PlayGameStatus.用户主动结束游戏
|
||||
|| playGameUserInfo.GameStatus == PlayGameStatus.用户钻石不足
|
||||
|| playGameUserInfo.GameStatus == PlayGameStatus.用户游玩时钻石不足
|
||||
|| playGameUserInfo.GameStatus == PlayGameStatus.游戏掉线结束 ||
|
||||
|| playGameUserInfo.GameStatus == PlayGameStatus.游戏掉线结束游戏 ||
|
||||
playGameUserInfo.GameStatus == PlayGameStatus.排队异常 ||
|
||||
playGameUserInfo.GameStatus == PlayGameStatus.排队掉线结束游戏
|
||||
)
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ public enum PlayGameStatus
|
|||
/// <summary>
|
||||
/// 游戏掉线已结束
|
||||
/// </summary>
|
||||
游戏掉线结束 = 24,
|
||||
游戏掉线结束游戏 = 24,
|
||||
|
||||
// ----------------------------------------
|
||||
// 游戏结束状态 (预留空间: 40-49)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user