public JsonResult GetDetailImage(string id) { Model.TD_Donation_Info model = donationBLL.GetModel(id); List <object> list = new List <object>(); if (model != null) { list.Add(new { ImageURL = model.ImageURL, Title = model.Title }); } return(GetSucceedListResult(list, list.Count)); }
public ActionResult Order(string id) { Model.TD_Donation_Info model = donationBLL.GetModel(id); string url = Request.Url.AbsoluteUri; WeiXinPort port = new WeiXinPort(); port.InitSignature(url); ThirdSharedInfo share = port.GetShareInfo(url); share.Title = string.Format("{0}项目捐款", "净名寺"); share.Link = url; share.Image = Request.Url.Scheme + "://" + Request.Url.Authority + "/Content/Org/JMS/logo.jpg"; share.Content = "欢迎转发分享,功德无量"; ViewBag.ShareInfo = share; return(View(model)); }