/// <summary> /// 获取JSApi令牌 /// </summary> /// <param name="accessToken"></param> /// <returns></returns> private string GetJSApiTicket(string appid, string secret) { string result = ""; wxhelper = new Weixin.WXHelper(); result = wxhelper.GetTicket(appid, secret, "jsapi"); return(result); }
/// <summary> /// 获取JSApi令牌 /// </summary> /// <param name="accessToken"></param> /// <returns></returns> private string GetJSApiTicket(string accessToken) { string result = ""; wxhelper = new Weixin.WXHelper(); result = wxhelper.GetTicketByToken(accessToken, "jsapi"); return(result); }
/// <summary> /// 获取访问令牌 /// </summary> /// <param name="AppId"></param> /// <param name="AppSecret"></param> /// <returns></returns> private string GetAccessToken(string appid, string secret) { string result = ""; wxhelper = new Weixin.WXHelper(); result = wxhelper.GetAccessToken(appid, secret); return(result); }