public ActionResult CreateGsMessage(string mediaid, int sendtype, string sendtarget, string textcontent, string msgtype) { WeChatMessageService pService = new WeChatMessageService("MP"); pService.CreateGsMessage(UserID, mediaid, sendtype, sendtarget, textcontent, msgtype, 1, 0, 0); EGExceptionResult pResult = pService.GetActionResult(); // if (pResult != null) { return(Json(pResult)); } pResult = new EGExceptionResult(true, "", ""); return(Json(pResult)); }
public ActionResult CreateGsMessage(GsMessageVM gsMegVM) { WeChatMessageService pService = new WeChatMessageService("QY"); pService.CreateGsMessage(UserID, gsMegVM.MediaId, 1, gsMegVM.ToTarget, gsMegVM.Content, gsMegVM.MsgType, 2, gsMegVM.AgentId, gsMegVM.Safe); EGExceptionResult pResult = pService.GetActionResult(); if (pResult != null) { return(Json(pResult)); } //if (gsMegVM.FuncID != 0 && gsMegVM.FuncType != 0) //{ // gsMegVM.FuncID = 1; // gsMegVM.FuncType = 1; // FuncStatistic funcStatistic = new FuncStatistic(); // funcStatistic.AddStatisticList(gsMegVM.ToTarget, gsMegVM.FuncID.ToString(), gsMegVM.FuncType.ToString(), "86", UserID); //} pResult = new EGExceptionResult(true, "", ""); return(Json(pResult)); }