增加下位机下位机测试升级的功能
This commit is contained in:
@@ -384,7 +384,7 @@ namespace WebSite.Controllers
|
||||
}
|
||||
|
||||
|
||||
public ActionResult ShengJI_NEW(IList<int> idList, string fileName, IHostManager HostManager1)
|
||||
public ActionResult ShengJI_NEW(IList<int> idList, string fileName, IHostManager HostManager1,int RoomTypeID)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -410,7 +410,8 @@ namespace WebSite.Controllers
|
||||
default:
|
||||
return Json(new { IsSuccess = false, Message = "升级文件不合法!" });
|
||||
}
|
||||
string fileHref = "Uploads/room_type/" + hosts[hosts.Count - 1].RoomType.ID + "/" + fileName;//升级文件相对路径
|
||||
//string fileHref = "Uploads/room_type/" + hosts[hosts.Count - 1].RoomType.ID + "/" + fileName;//升级文件相对路径
|
||||
string fileHref = "Uploads/room_type/" + RoomTypeID + "/" + fileName;//升级文件相对路径
|
||||
string fileMd5 = "";
|
||||
using (Stream stream = System.IO.File.Open(Tools.GetApplicationPath() + fileHref, FileMode.Open))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user