public ActionResult VoiceUpLoad(string lcname, string lcclassify) { WeChatVoiceService pService = new WeChatVoiceService("QY"); //首先上传资源到微信服务器,并写入本地服务器配置文件 List <WXVoiceResultJson> plist = pService.UpdateResources(Request, lcname, lcclassify); EGExceptionResult pResult = pService.GetActionResult(); if (pResult != null) { return(Json(pResult)); } //初始化绑定model var pModel = new { IsSuccess = true, ListJson = plist }; return(Json(pModel)); }
/// <summary> /// 獲取微信端音頻資源 /// </summary> /// <param name="PageIndex"></param> /// <param name="RowCountInPage"></param> /// <param name="filterString"></param> /// <returns></returns> public ActionResult LoadWXVoices(int PageIndex = 1, int RowCountInPage = 8, string filterString = "") { int iRecCount = -1; WeChatVoiceService pService = new WeChatVoiceService("QY"); List <WXVoiceResultJson> plist = pService.LoadResources(PageIndex, RowCountInPage, filterString, out iRecCount); EGExceptionResult pResult = pService.GetActionResult(); if (pResult != null) { return(Json(pResult)); } var pModel = new { IsSuccess = true, ListJson = plist, RecordsCount = iRecCount }; return(Json(pModel)); }