增加升级 ,增加 新版本的日志推送
This commit is contained in:
@@ -58,6 +58,7 @@ namespace RCUHost.Implement
|
||||
foreach (var host in hosts)
|
||||
{
|
||||
SendUpdateRequest(host, fileMd5, blockNum, (byte)fileType, fileHref.Substring(fileHref.IndexOf("/")));//发送升级通知
|
||||
Thread.Sleep(300);
|
||||
this.updateHostList.Add(new UpdateHostWorker(host, hostUpdate, MessageIP, fileHref, updateFile));
|
||||
if (hostUpdate == null)//从api获取升级文件方式为null,保存主机表升级状态信息
|
||||
{
|
||||
@@ -214,8 +215,10 @@ namespace RCUHost.Implement
|
||||
/// <param name="updateFileMd5">升级文件MD5值</param>
|
||||
private void SendUpdateRequest(Host host, string updateFileMd5, ushort blockNum, byte fileType, string fileName)
|
||||
{
|
||||
logger.Error("主机升级:"+host.SysHotel.Code+":"+host.RoomNumber);
|
||||
logger.Error("主机升级:"+host.SysHotel.Code+":"+host.RoomNumber+" FileMd5:"+updateFileMd5+" FileName:"+fileName);
|
||||
byte[] data = CreateUpdateRequestPacket(updateFileMd5, blockNum, fileType, fileName);
|
||||
logger.Error("升级HostNumber为:"+host.HostNumber);
|
||||
logger.Error("升级指令为:"+Tools.ByteToString(data));
|
||||
Send(data, host.HostNumber, host.MAC);// host.IP, host.Port);
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user