public MpSelfArticlesController(IMpSelfArticleAppService mpSelfArticleAppService, IUserMpAppService userMpAppService, IFileServer fileServer) { _mpSelfArticleAppService = mpSelfArticleAppService; _userMpAppService = userMpAppService; _fileServer = fileServer; }
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 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); }; }