public ActionResult Index(string keyValue) { WxOfficialOutputDto wxOfficialOutputDto = wxOfficialService.GetForm(keyValue); WxOperatorModel wxOperatorModel = new WxOperatorModel(); wxOperatorModel.AppId = wxOfficialOutputDto.AppId; wxOperatorModel.Name = wxOfficialOutputDto.Name; wxOperatorModel.AppSecret = wxOfficialOutputDto.AppSecret; wxOperatorModel.AppType = wxOfficialOutputDto.AppType; WxOperatorProvider.Provider.AddCurrent(wxOperatorModel); var aaa = WxOperatorProvider.Provider.GetCurrent(); AccessTokenContainer.Register(wxOfficialOutputDto.AppId, wxOfficialOutputDto.AppSecret); ViewData["AppName"] = wxOfficialOutputDto.Name; return(View()); }
public ActionResult GetFormJson(string keyValue) { var data = wxOfficialService.GetForm(keyValue); return(Content(data.ToJson())); }