/// <summary> /// 插入token /// </summary> public BInsertAccess_Token(MAccess_Token access_Token) { this.access_TokenInfo = access_Token; this.Connection = ConnectionFactory.WeChatDBWrite; this.IsBeginTransaction = false; this.access_TokenDal = new DAccess_Token(); }
/// <summary> /// 获取全部公众号口令信息 /// </summary> public BGetAccess_Token(string grant_Type) { this.grant_Type = grant_Type; this.Connection = ConnectionFactory.WeChatDBWrite; this.IsBeginTransaction = false; this.access_TokenDal = new DAccess_Token(); this.type = 2; this.Access_TokenInfoDic = new Dictionary <string, MAccess_Token>(); this.WeixinAppInfoDic = new Dictionary <string, MWeixinParam>(); }
/// <summary> /// 获取口令(公众号) /// </summary> public BGetAccess_Token(string appid, string appSecret, string grant_Type) { this.appid = appid; this.appSecret = appSecret; this.grant_Type = grant_Type; this.Connection = ConnectionFactory.WeChatDBWrite; this.IsBeginTransaction = false; this.access_TokenDal = new DAccess_Token(); this.type = 0; }
/// <summary> /// 产品销售情况查询 /// </summary> public BUpdateAccess_Token(string keyID, string tokenstr, string refreshToken, DateTime outTime) { this.keyID = keyID; this.tokenstr = tokenstr; this.outTime = outTime; this.refreshToken = refreshToken; this.Connection = ConnectionFactory.WeChatDBWrite; this.IsBeginTransaction = false; this.access_TokenDal = new DAccess_Token(); }
/// <summary> /// 获取口令(用户的) /// </summary> /// <param name="appid"></param> /// <param name="appSecret"></param> /// <param name="openID"></param> /// <param name="scope"></param> public BGetAccess_Token(string appid, string appSecret, string openID, string scope) { this.appid = appid; this.appSecret = appSecret; this.openID = openID; this.scope = scope; this.Connection = ConnectionFactory.WeChatDBWrite; this.IsBeginTransaction = false; this.access_TokenDal = new DAccess_Token(); this.type = 1; }