Files
hjha-server/ObjectModel/ConstClass.cs
xiaoou e9616125ce feat: initial commit - HJHA game server full source
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
2026-07-07 12:02:15 +08:00

60 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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}";
}
}
}