添加日志

This commit is contained in:
2026-02-04 18:06:18 +08:00
parent 3de5990573
commit b9ef94a671
28 changed files with 134 additions and 54 deletions

View File

@@ -39,34 +39,15 @@ namespace Common
string channel = "__keyevent@4__:expired";
var QQQ = new ValueTuple<string, Action<CSRedisClient.SubscribeMessageEventArgs>>(channel, (msg) =>
{
//string Key = CacheKey.UPGradeProgressBar + "_" + id;
try
{
if (!msg.Body.StartsWith("hb#"))
{
bool containsHyphen = msg.Body.Contains("-");
bool isNumeric = msg.Body.All(char.IsDigit);
if (containsHyphen == false && isNumeric)
{
//string hotelcode = Tools.HostNumberToHotelCode(msg.Body).ToString();
//OnOffLineData o = new OnOffLineData();
//o.HotelCode = hotelcode;
//o.HostNumber = msg.Body;
//o.CurrentStatus = "off";
//o.CurrentTime = DateTime.Now;
////新来的数据
//string str = Newtonsoft.Json.JsonConvert.SerializeObject(o);
//CSRedisCacheHelper.redis3.Publish("redis-on_off_line", str);
//redis4.Set(HeartBeatPrefix + "_" + msg.Body, 1, 5 * 60);
}
}
}
catch (Exception ex)
{
}
});
redis.Subscribe(QQQ);
//redis.Subscribe(QQQ);
}
}
/// <summary>