public ActionResult CreateMenu([FromBody] WeChatMenu menu) { HttpItem item = new HttpItem { URL = $" https://api.weixin.qq.com/cgi-bin/menu/create?access_token={redisCache.GetString("AccessToken")}", Postdata = Json(menu).ToString() }; var weChatOpenidlist = httpHelper.GetHtml(item); return(null); }
private void syncWxMenu(ref JsonData Result) { WeChatMenu wcm = new WeChatMenu(); int errorcode = -1; string errorMsg = wcm.createMenu(ref errorcode); if (errorcode != 0) { Result.SetError(errorMsg); } }
public static WeChatMenu ToEntity(this WeChatMenuModel model, WeChatMenu destination, IObjectMapper ObjectMapper) { return(model.MapTo(destination, ObjectMapper)); }
public static WeChatMenuModel ToModel(this WeChatMenu entity, IObjectMapper ObjectMapper) { return(entity.MapTo <WeChatMenu, WeChatMenuModel>(ObjectMapper)); }