public WechatMenuManager(IWechatAuthentManager wechatAuthentManager, IWechatMenuProvider wechatMenuProvider) { _wechatAuthentManager = wechatAuthentManager; _wechatMenuProvider = wechatMenuProvider; //_requestFactory = new RequestFactory(ConfigHelper.GetValuesByKey("WechatUri")); }
public WechatOAuth2Processor(IWechatAuthentManager wechatAuthentManager, IRepository <UserInfo> userRepository) { _wechatAuthentManager = wechatAuthentManager; _userRepository = userRepository; _appid = ConfigHelper.GetValuesByKey("WechatAppid"); _appsecret = ConfigHelper.GetValuesByKey("WechatAppSecret"); }
public PassowrdProcessor(IWechatAuthentManager wechatAuthentManager, IRepository <UserInfo> userRepository, IDirectEmailService directEmailService) { _wechatAuthentManager = wechatAuthentManager; _userRepository = userRepository; _directEmailService = directEmailService; }
public PurchaseService(IWechatAuthentManager wechatAuthentManager, IPurchaseServiceRepository purchaseServiceRepository, IRepository <UserPayOrderInfo, string> userPayOrdeRepository, IOrderPolicy orderPolicy) { _wechatAuthentManager = wechatAuthentManager; _purchaseServiceRepository = purchaseServiceRepository; _userPayOrdeRepository = userPayOrdeRepository; _orderPolicy = orderPolicy; }
public PurchaseAppService(IPurchaseService purchaseService, IRepository <UserInfo> userRepository, IWechatAuthentManager wechatAuthentManager, IAlipayPurchaseService alipayPurchaseService) { _purchaseService = purchaseService; _userRepository = userRepository; _wechatAuthentManager = wechatAuthentManager; _alipayPurchaseService = alipayPurchaseService; }
/// <summary> /// 从微信服务端同步用户的个人基本信息 /// </summary> /// <param name="wechatAuthentManager"></param> public void SynchronWechatUserInfo(IWechatAuthentManager wechatAuthentManager) { if (string.IsNullOrEmpty(m_openId)) { LogHelper.Logger.Error("OpenId为空,用户可能不是从合法的途径进入到该站点!"); throw new Exception("OpenId不能为空,请从合法的途径进入该站点"); } var userInfoResult = CommonApi.GetUserInfo(wechatAuthentManager.GetAccessToken(), m_openId); if (userInfoResult.errcode != ReturnCode.请求成功) { LogHelper.Logger.Error("请求用户的基本信息失败,原因:" + userInfoResult.errcode); throw new Exception("请求用户的基本信息失败,原因:" + userInfoResult.errcode); } UserWechatInfo = userInfoResult.MapTo <WechatAccount>(); }
public BindAccountProcessor(IWechatAuthentManager wechatAuthentManager, IRepository <UserInfo> userRepository) { _wechatAuthentManager = wechatAuthentManager; _userRepository = userRepository; }
public WechatAuthAppService(IWechatAuthentManager wechatAuthentManager, IWechatOAuth2Processor wechatOAuth2Processor) { _wechatAuthentManager = wechatAuthentManager; _wechatOAuth2Processor = wechatOAuth2Processor; }