升级 ,以及修复一些BUG
This commit is contained in:
@@ -3856,8 +3856,6 @@ namespace WebSite.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void ReallyUpgrade(string 房型ID, string host_list_str, string fileName)
|
||||
{
|
||||
int roomTypeID = 0;
|
||||
@@ -3937,6 +3935,23 @@ namespace WebSite.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HttpPost()]
|
||||
public ActionResult Upgrade_V2(string roomtype_id, string host_list_str, string fileName)
|
||||
{
|
||||
int roomTypeID = 0;
|
||||
int.TryParse(roomtype_id, out roomTypeID);
|
||||
|
||||
logger.Error("微信端开始升级: " + fileName + " " + roomTypeID + " host_list: " + host_list_str);
|
||||
var host_list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<int>>(host_list_str);
|
||||
|
||||
//不用获取,直接在本地使用
|
||||
string lll = JsonConvert.SerializeObject(host_list);
|
||||
HostUpdateController hh = new HostUpdateController();
|
||||
logger.Error("开始升级: " + fileName + " host_list: " + lll);
|
||||
//升级
|
||||
return hh.新改造(host_list, fileName,roomTypeID,HostManager);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user