/// <summary> /// 客户端检测更新的地址 /// </summary> /// <param name="id"></param> /// <param name="clientId"></param> /// <param name="msg">附加消息</param> /// <returns></returns> public ActionResult RunInfo(int id, string clientId) { clientId = clientId ?? Request.ServerVariables["REMOTE_ADDR"]; var file = SysUpdateHelper.GetSystemRunInfoFile(id); if (!System.IO.File.Exists(file)) { return(Json(SysUpdateHelper.EmptyRunInfo, JsonRequestBehavior.AllowGet)); } else { return(File(file, "application/octet-stream")); } }