/// <summary> /// 类初始化 /// </summary> /// <param name="wxPlatType"></param> public PassiveProcess(WxPlatFormTypeEnum wxPlatType) { this._wxPlatType = wxPlatType; //根据平台构造加解密实例,目前将qy与gz使用同一加解密实例 if (this._wxPlatType == WxPlatFormTypeEnum.QY) { WXQYConfigEntity qyConfig = XmlToEntity.GetQYConfig(); this._wxcpt = new WXBizMsgCrypt(qyConfig.Token, qyConfig.EncodingAESKey, qyConfig.CorpID); } else { WXGZConfigEntity gzConfig = XmlToEntity.GetGZConfig(); this._wxcpt = new WXBizMsgCrypt(gzConfig.Token, gzConfig.EncodingAESKey, gzConfig.AppID); } }
public JsApiTicketsManager(WxPlatFormTypeEnum platType) { this._wxPlatType = platType; }