public MCServiceHandler(int mpId, MpAccountDto account, ICacheManager cacheManager, ILogger logger, IAccessTokenContainer accessTokenContainer , IMatialFileService matialFileService , IWebUrlService webUrlService , IYiliBabyClubInterfaceService yiliBabyClubInterfaceService) { _cacheManager = cacheManager; _logger = logger; mpid = mpId; _account = account; _accessTokenContainer = accessTokenContainer; _matialFileService = matialFileService; _webUrlService = webUrlService; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; MamaBanToYun2OneMediaID = _matialFileService.MaMaBanToYun2One; JNHToLongLineMediaID = _matialFileService.JNHToLongLine; wxOnlineUrl = _webUrlService.GetSiteRootAddress() + _matialFileService.WxOnlineUrl; auth2Url = _webUrlService.GetSiteRootAddress() + _matialFileService.Auth2Url; defaultUserName = _yiliBabyClubInterfaceService.ApiUserName; defaultUserPwd = _yiliBabyClubInterfaceService.ApiPassword; deviceCode = _yiliBabyClubInterfaceService.ApiDeviceCode; yiliwechat = _yiliBabyClubInterfaceService.Yiliwechat; }
public TestApiController(ICacheManager cacheManager, IMpUserMemberAppService usermember, IMpUserMemberAppService mpUserMemberAppService, IYiliBabyClubInterfaceService yiliBabyClubInterfaceService, IMpBabyTextAppService mpBabyTextAppService) { _cacheManager = cacheManager; _usermember = usermember; _mpUserMemberAppService = mpUserMemberAppService; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; defaultUserName = _yiliBabyClubInterfaceService.ApiUserName; defaultUserPwd = _yiliBabyClubInterfaceService.ApiPassword; deviceCode = _yiliBabyClubInterfaceService.ApiDeviceCode; _mpBabyTextAppService = mpBabyTextAppService; }
public MpCallbackController(IAccessTokenContainer accessTokenContainer , ICacheManager cacheManager , IMpAccountAppService mpAccountAppService , IMpApiTokenAppService mpApiTokenAppService , IMpEventAppService mpEventAppService , IMpEventClickViewLogAppService mpEventClickViewLogAppService , IMpEventRequestMsgLogAppService mpEventRequestMsgLogAppService , IMpEventScanLogAppService mpEventScanLogAppService , IMpFanAppService mpFanAppService , IMpKeyWordReplyAppService mpKeyWordReplyAppService , IMpMessageAppService mpMessageAppService , IMpMenuAppService mpMenuAppService , IMpMediaVideoAppService mpMediaVideoAppService , IMpSelfArticleAppService mpSelfArticleAppService , IMpSelfArticleGroupAppService mpSelfArticleGroupAppService , IWebUrlService webUrlService , IMpSelfArticleGroupItemAppService mpSelfArticleGroupItemAppService , ICustomerServiceResponseTextAppService customerServiceResponseTextAppService , IMpUserMemberAppService mpUserMemberAppService , IMpChannelAppService mpChannelAppService , IIocResolver iocResolver , IMatialFileService matialFileService , IYiliBabyClubInterfaceService yiliBabyClubInterfaceService ) { _accessTokenContainer = accessTokenContainer; ClientInfoProvider = NullClientInfoProvider.Instance; _cacheManager = cacheManager; _mpAccountAppService = mpAccountAppService; _mpApiTokenAppService = mpApiTokenAppService; _mpEventAppService = mpEventAppService; _mpEventClickViewLogAppService = mpEventClickViewLogAppService; _mpEventRequestMsgLogAppService = mpEventRequestMsgLogAppService; _mpEventScanLogAppService = mpEventScanLogAppService; _mpFanAppService = mpFanAppService; _mpKeyWordReplyAppService = mpKeyWordReplyAppService; _mpMenuAppService = mpMenuAppService; _mpMessageAppService = mpMessageAppService; _mpMediaVideoAppService = mpMediaVideoAppService; _mpSelfArticleAppService = mpSelfArticleAppService; _mpSelfArticleGroupAppService = mpSelfArticleGroupAppService; _webUrlService = webUrlService; _mpSelfArticleGroupItemAppService = mpSelfArticleGroupItemAppService; _customerServiceResponseTextAppService = customerServiceResponseTextAppService; _mpUserMemberAppService = mpUserMemberAppService; _mpChannelAppService = mpChannelAppService; _iocResolver = iocResolver; _matialFileService = matialFileService; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; }
public MpFansController(IMpFanAppService mpFanAppService, IUserMpAppService userMpAppService, IHostingEnvironment host, IMpGroupAppService mpGroupAppService, IBackgroundJobManager backgroundJobManager, IMpAccountAppService mpAccountService, ICacheManager cacheManager, IYiliBabyClubInterfaceService yiliBabyClubInterfaceService) { _mpFanAppService = mpFanAppService; _userMpAppService = userMpAppService; _host = host; _mpGroupAppService = mpGroupAppService; _backgroundJobManager = backgroundJobManager; _mpAccountService = mpAccountService; _cacheManager = cacheManager; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; defaultUserName = _yiliBabyClubInterfaceService.ApiUserName; defaultUserPwd = _yiliBabyClubInterfaceService.ApiPassword; deviceCode = _yiliBabyClubInterfaceService.ApiDeviceCode; }
public MeiChiController(ICacheManager cacheManager, IMpUserMemberAppService mpUserMemberAppService, IMpBabyTextAppService mpBabyTextAppService, IMpShoppingMallPicAppService mpShoppingMallPicAppService, IMpFanAppService mpFanAppService, IAccessTokenContainer accessTokenContainer, IMpApiTokenAppService mpApiTokenAppService, IMatialFileService matialFileService, IYiliBabyClubInterfaceService yiliBabyClubInterfaceService, IMpProductInfoAppService mpProductInfoAppService, IMpCourseSignupAppService mpCourseSignupAppService, ICustomerServiceOnlineAppService customerServiceOnlineAppService) { _cacheManager = cacheManager; _mpUserMemberAppService = mpUserMemberAppService; _mpBabyTextAppService = mpBabyTextAppService; _mpShoppingMallPicAppService = mpShoppingMallPicAppService; _mpFanAppService = mpFanAppService; _accessTokenContainer = accessTokenContainer; _mpApiTokenAppService = mpApiTokenAppService; _matialFileService = matialFileService; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; _mpProductInfoAppService = mpProductInfoAppService; _mpCourseSignupAppService = mpCourseSignupAppService; _customerServiceOnlineAppService = customerServiceOnlineAppService; MamaBanToYun2OneMediaID = _matialFileService.MaMaBanToYun2One; JNHToLongLineMediaID = _matialFileService.JNHToLongLine; defaultUserName = _yiliBabyClubInterfaceService.ApiUserName; defaultUserPwd = _yiliBabyClubInterfaceService.ApiPassword; deviceCode = _yiliBabyClubInterfaceService.ApiDeviceCode; yiliwechat = _yiliBabyClubInterfaceService.Yiliwechat; }
public CustomMessageHandler(Stream inputStream, PostModel postModel, ILogger logger , ICacheManager cacheManager, IMpAccountAppService mpAccountAppService, int _mpId , IMpEventAppService mpEventAppService, IMpMediaVideoAppService mpMediaVideoAppService , IMpSelfArticleAppService mpSelfArticleAppService , IMpSelfArticleGroupAppService mpSelfArticleGroupAppService , IMpSelfArticleGroupItemAppService mpSelfArticleGroupItemAppService , IMpEventRequestMsgLogAppService mpEventRequestMsgLogAppService , IMpKeyWordReplyAppService mpKeyWordReplyAppService , IMpEventClickViewLogAppService mpEventClickViewLogAppService , IMpMenuAppService mpMenuAppService , IMpMessageAppService mpMessageAppService , IAccessTokenContainer accessTokenContainer , IMpFanAppService mpFanAppService , IMpEventScanLogAppService mpEventScanLogAppService , ICustomerServiceResponseTextAppService customerServiceResponseTextAppService , IMpUserMemberAppService mpUserMemberAppService , MpAccountDto account , IMpChannelAppService mpChannelAppService , IIocResolver iocResolver , IMatialFileService matialFileService , IWebUrlService webUrlService , IYiliBabyClubInterfaceService yiliBabyClubInterfaceService , int maxRecordCount = 0) : base(inputStream, postModel, maxRecordCount) { mpId = _mpId; _cacheManager = cacheManager; _logger = logger; _accessTokenContainer = accessTokenContainer; _mpAccountAppService = mpAccountAppService; _mpEventAppService = mpEventAppService; _mpEventClickViewLogAppService = mpEventClickViewLogAppService; _mpEventRequestMsgLogAppService = mpEventRequestMsgLogAppService; _mpEventScanLogAppService = mpEventScanLogAppService; _mpFanAppService = mpFanAppService; _mpKeyWordReplyAppService = mpKeyWordReplyAppService; _mpMediaVideoAppService = mpMediaVideoAppService; _mpMenuAppService = mpMenuAppService; _mpMessageAppService = mpMessageAppService; _mpSelfArticleGroupItemAppService = mpSelfArticleGroupItemAppService; _mpSelfArticleGroupAppService = mpSelfArticleGroupAppService; _mpSelfArticleAppService = mpSelfArticleAppService; WeixinContext.ExpireMinutes = 3; _customerServiceResponseTextAppService = customerServiceResponseTextAppService; _mpUserMemberAppService = mpUserMemberAppService; _iocResolver = iocResolver; _account = account; _matialFileService = matialFileService; _webUrlService = webUrlService; _mpChannelAppService = mpChannelAppService; _yiliBabyClubInterfaceService = yiliBabyClubInterfaceService; domain = _webUrlService.GetSiteRootAddress(); if (!string.IsNullOrEmpty(postModel.AppId)) { appId = postModel.AppId;//通过第三方开放平台发送过来的请求 } //在指定条件下,不使用消息去重 base.OmitRepeatedMessageFunc = requestMessage => { var textRequestMessage = requestMessage as RequestMessageText; if (textRequestMessage != null && textRequestMessage.Content == "容错") { return(false); } return(true); }; }