增加新的功能
This commit is contained in:
@@ -263,7 +263,7 @@ namespace RCUHost.Implement
|
||||
|
||||
RegisterInfo rsg = new RegisterInfo()
|
||||
{
|
||||
ts_ms=Tools.GetUnixTime_MS(),
|
||||
ts_ms = Tools.GetUnixTime_MS(),
|
||||
hotel_id = hotel_code,
|
||||
room_id = host.RoomNumber,
|
||||
device_id = HostNumberOnly,
|
||||
@@ -276,7 +276,7 @@ namespace RCUHost.Implement
|
||||
subnet_mask = subnet_mask,
|
||||
gateway = gateway,
|
||||
dns = dns,
|
||||
version = software_version,
|
||||
app_version = software_version,
|
||||
rcu_time = rcuTime,
|
||||
launcher_version = launcher_version,
|
||||
mac = mac,
|
||||
@@ -285,8 +285,12 @@ namespace RCUHost.Implement
|
||||
room_status = room_status_id,
|
||||
season = hostRCU.Season,
|
||||
sys_lock_status = hostRCU.LockStatus,
|
||||
authorization_time = set_expiration_time,
|
||||
authorization_days = expiration_time,
|
||||
|
||||
//hostRCU.ExpireTime = TimeHelper.ToDateTime(expiration_time);
|
||||
// hostRCU.SetExpireTime = TimeHelper.ToDateTime(set_expiration_time)
|
||||
//string ti = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
authorization_time = set_expiration_time.ToString(),
|
||||
authorization_days = expiration_time.ToString(),
|
||||
room_num_remark = roomnumber,
|
||||
room_type_remark = roomtype,
|
||||
room_remark = room_remark,
|
||||
|
||||
@@ -2562,7 +2562,7 @@ namespace RCUHost.Implement
|
||||
{
|
||||
if (fanspeed == 2 || fanspeed == 3)
|
||||
{
|
||||
string KKKSpec = HostNNN + "_" + address;
|
||||
string KKKSpec = HostNNN + "_" + address+"_"+HostID;
|
||||
if (status == 1)
|
||||
{
|
||||
string ReportTime111 = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
@@ -2593,6 +2593,18 @@ namespace RCUHost.Implement
|
||||
{
|
||||
string KKey = CacheKey.HostModalStatus_Prefix + "_" + HostID + "_" + address;
|
||||
var HHostModalData = CSRedisCacheHelper.Get_Partition<HostModal_Cache>(KKey);
|
||||
|
||||
if (HHostModalData==null)
|
||||
{
|
||||
HHostModalData = new HostModal_Cache();
|
||||
HHostModalData.HostID = int.Parse(HostID);
|
||||
HHostModalData.ModalType = DeviceType.AirConditioner;
|
||||
HHostModalData.AirConditionData = new AirConditionData();
|
||||
HHostModalData.Modal = new RoomTypeModalCache()
|
||||
{
|
||||
ModalAddress = address
|
||||
};
|
||||
}
|
||||
if (HHostModalData != null)
|
||||
{
|
||||
HHostModalData.AirConditionData.AirStatus = status;
|
||||
@@ -2629,11 +2641,8 @@ namespace RCUHost.Implement
|
||||
}
|
||||
CSRedisCacheHelper.Set_Partition(KKey, HHostModalData);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user