6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
60 lines
1.6 KiB
C#
60 lines
1.6 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ObjectModel
|
||
{
|
||
/// <summary>
|
||
/// 常量类
|
||
/// </summary>
|
||
public class ConstClass
|
||
{
|
||
/// <summary>
|
||
/// IPTV直播数据redis key --停用
|
||
/// </summary>
|
||
public const string IPtvWarDataRedisKey = "IPtvWarData";
|
||
|
||
/// <summary>
|
||
/// iptv直播数据的库 --停用
|
||
/// </summary>
|
||
public const int IPtvWarReidsDB = 9;
|
||
|
||
/// <summary>
|
||
/// 不能同桌(通过设置IP)的redisKey
|
||
/// </summary>
|
||
public const string NoDeskMatesAllowedKey = "NoDeskMatesAllowedByIP";
|
||
|
||
/// <summary>
|
||
/// 不能同桌的redis 库下标
|
||
/// </summary>
|
||
public const int NoDeskMatesAllowedDBIdx = 9;
|
||
|
||
/// <summary>
|
||
/// 实名认证秘钥的redis Key
|
||
/// </summary>
|
||
public const string SMRSSecretKey = "SMRSSecretKey";
|
||
|
||
/// <summary>
|
||
/// 获取红包积分Redis Key
|
||
/// </summary>
|
||
/// <param name="userid"></param>
|
||
/// <returns></returns>
|
||
public static string GetRedMoneyKey(int userid)
|
||
{
|
||
return $"RedMoneyNew:{userid}";
|
||
}
|
||
|
||
/// <summary>
|
||
/// 获取需要平衡的用户信息
|
||
/// </summary>
|
||
/// <param name="modelId">服务器模块Id</param>
|
||
/// <returns></returns>
|
||
public static string GetBalanceKey(int modelId)
|
||
{
|
||
return $"ChangeCardSeat:{modelId}";
|
||
}
|
||
}
|
||
}
|