给宝镜增加新的功能字段, PMS系统数据格式 更新
给宝镜推送 新功能,增加 RCU离 在线的功能
This commit is contained in:
@@ -1906,7 +1906,7 @@ namespace RCUHost.Implement
|
||||
if (XuanZhuHotelData.dataArray.Contains(int.Parse(codesss)))
|
||||
{
|
||||
XuanZhuRequest resp1 = new XuanZhuRequest();
|
||||
resp1.code = host.SysHotel.Code;
|
||||
resp1.code = host.SysHotel.Code + "@" + host.SysHotel.CreatedDate.ToString("yyyy-MM-dd");
|
||||
resp1.roomNumber = host.RoomNumber;
|
||||
resp1.devicetype = hostModal.ModalType.ToString();
|
||||
resp1.address = hostModal.Modal.ModalAddress;
|
||||
@@ -1938,8 +1938,8 @@ namespace RCUHost.Implement
|
||||
else
|
||||
{
|
||||
string NoKey = CacheKey.HostModalStatus_BoolFilterPrefix + "_" + host.ID + "_" + device.Value.Address;
|
||||
var expiredata = new Random().Next(10, 50);
|
||||
CSRedisCacheHelper.Set_PartitionWithTime<int>(NoKey, 1, expiredata);
|
||||
//var expiredata = new Random().Next(10, 50);
|
||||
CSRedisCacheHelper.Set_PartitionWithTime<int>(NoKey, 1, 30);
|
||||
//logger.Error("内存和数据库都不见这条数据:" + KKey);
|
||||
}
|
||||
#endregion
|
||||
@@ -2202,6 +2202,17 @@ namespace RCUHost.Implement
|
||||
faultType = fault.Value.Type,
|
||||
faultData = fault.Value.Data
|
||||
};
|
||||
|
||||
//XuanZhuResponse_Fault hfault = new XuanZhuResponse_Fault()
|
||||
// {
|
||||
// data = resp,
|
||||
// updatetime = DateTime.Now,
|
||||
// url = host.SysHotel.FaultPushURL
|
||||
// };
|
||||
|
||||
//string FaultKey = CacheKey.FaultKey_;
|
||||
//string FFFFFKey = HotelCode + "_" + host.RoomNumber + "_" + hostModal.Modal.ModalAddress;
|
||||
//CSRedisCacheHelper.HMSet(5, 60, FaultKey, FFFFFKey, resp);
|
||||
//var u = Newtonsoft.Json.JsonConvert.SerializeObject(resp);
|
||||
//logger.Error("logger report fault: "+u);
|
||||
var fault_data = new Tuple<string, XuanZhuResponse>(host.SysHotel.FaultPushURL, resp);
|
||||
|
||||
Reference in New Issue
Block a user