添加日志
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user