增加能耗推送和新的 那个日志数据推送
This commit is contained in:
@@ -3819,20 +3819,7 @@ namespace WebSite.Controllers
|
||||
{
|
||||
return Json(new { IsSuccess = false, Data = "hostid_lists不能为空" });
|
||||
}
|
||||
int roomTypeID = 0;
|
||||
int.TryParse(b, out roomTypeID);
|
||||
|
||||
logger.Error("微信端开始升级: " + fileName + " " + roomTypeID + " host_list: " + host_list_str);
|
||||
var host_list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<int>>(host_list_str);
|
||||
|
||||
//让服务器获取升级文件
|
||||
HostUpdateController.GetUpdateFileByRoomTypeID(roomTypeID);
|
||||
|
||||
string lll = JsonConvert.SerializeObject(host_list);
|
||||
HostUpdateController hh = new HostUpdateController();
|
||||
logger.Error("开始升级: " + fileName + " host_list: " + lll);
|
||||
//升级
|
||||
hh.ShengJI_NEW(host_list, fileName, HostManager);
|
||||
ReallyUpgrade(b, host_list_str, fileName);
|
||||
return Json(new { IsSuccess = true, Data = "正在升级,请等待……" });
|
||||
}
|
||||
catch (Exception ex)
|
||||
@@ -3841,6 +3828,52 @@ namespace WebSite.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpPost()]
|
||||
public ActionResult WebChatUpgradeTimer()
|
||||
{
|
||||
try
|
||||
{
|
||||
string b = Request.Form["roomTypeID"].ToString();
|
||||
if (string.IsNullOrEmpty(b))
|
||||
{
|
||||
return Json(new { IsSuccess = false, Data = "roomTypeID不能为空" });
|
||||
}
|
||||
|
||||
string host_list_str = Request.Form["hostid_lists"].ToString();
|
||||
string fileName = Request.Form["upgradefileName"].ToString();
|
||||
|
||||
if (string.IsNullOrEmpty(host_list_str))
|
||||
{
|
||||
return Json(new { IsSuccess = false, Data = "hostid_lists不能为空" });
|
||||
}
|
||||
ReallyUpgrade(b, host_list_str, fileName);
|
||||
return Json(new { IsSuccess = true, Data = "正在升级,请等待……" });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { IsSuccess = false, Data = ex.Message });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void ReallyUpgrade(string 房型ID, string host_list_str, string fileName)
|
||||
{
|
||||
int roomTypeID = 0;
|
||||
int.TryParse(房型ID, out roomTypeID);
|
||||
|
||||
logger.Error("微信端开始升级: " + fileName + " " + roomTypeID + " host_list: " + host_list_str);
|
||||
var host_list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<int>>(host_list_str);
|
||||
|
||||
//让服务器获取升级文件
|
||||
HostUpdateController.GetUpdateFileByRoomTypeID(roomTypeID);
|
||||
|
||||
string lll = JsonConvert.SerializeObject(host_list);
|
||||
HostUpdateController hh = new HostUpdateController();
|
||||
logger.Error("开始升级: " + fileName + " host_list: " + lll);
|
||||
//升级
|
||||
hh.ShengJI_NEW(host_list, fileName, HostManager);
|
||||
}
|
||||
|
||||
[HttpPost()]
|
||||
public ActionResult QueryUpdateHostProgressBar(string HostIDList)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user