public ActionResult GetFileList(int id) { var data = MessageBLL.Get(id); List <FileInfo> fileList = new List <FileInfo>(); if (string.IsNullOrWhiteSpace(data.PHOTO)) { } else { var files = data.PHOTO.Split('|'); foreach (var file in files) { FileInfo info = new FileInfo(); info.FileName = file.Substring(0, file.LastIndexOf(".")); info.FileUrl = ConfigurationManager.AppSettings["FileUrl"] + file; fileList.Add(info); } } //修改消息为已读 data.ISREAD_PLATFORM = 1; MessageBLL.Update(data); return(new JsonResult { Data = fileList }); }