public CustomJsonResult <JsApiConfigParams> GetJsApiConfigParams(string url) { string jsApiTicket = WxUntil.GetInstance().GetJsApiTicket(wxConfig.AppId, wxConfig.AppSecret, this.GetApiAccessToken()); JsApiConfigParams parms = new JsApiConfigParams(wxConfig.AppId, url, jsApiTicket); return(new CustomJsonResult <JsApiConfigParams>(ResultType.Success, ResultCode.Success, "", parms)); }
public static WxUntil GetInstance() { if (instance == null) { lock (padlock) { if (instance == null) { instance = new WxUntil(); } } } return(instance); }
public string GetApiAccessToken() { return(WxUntil.GetInstance().GetAccessToken(wxConfig.AppId, wxConfig.AppSecret)); }
public List <WxUserCard> GetUserCards(string opendid, string cardid) { return(WxUntil.GetInstance().GetUserCartList(this.GetApiAccessToken(), opendid, cardid)); }
public string UploadMultimediaImage(string imageUrl) { return(WxUntil.GetInstance().UploadMultimediaImage(this.GetApiAccessToken(), imageUrl)); }
public string GetCardApiTicket() { string cardApiTicket = WxUntil.GetInstance().GetCardApiTicket(wxConfig.AppId, wxConfig.AppSecret, this.GetApiAccessToken()); return(cardApiTicket); }
public WxApiUserInfoResult GetUserInfoByApiToken(string openId) { return(WxUntil.GetInstance().GetUserInfoByApiToken(this.GetApiAccessToken(), openId)); }
public string CardCodeDecrypt(string encrypt_code) { return(WxUntil.GetInstance().CardCodeDecrypt(this.GetApiAccessToken(), encrypt_code)); }