public SelfKeFuMessageHandler(ICacheManager cacheManager, ICYConfigAppService cYConfigAppService,
                               IMpAccountAppService mpAccountAppService, IAccessTokenContainer accessTokenContainer,
                               ICustomerServiceResponseTextAppService customerServiceResponseTextAppService,
                               ICustomerServiceConversationAppService customerServiceConversationAppService,
                               ICustomerServiceConversationMsgAppService customerServiceConversationMsgAppService,
                               IMpFanAppService mpFanAppService, ISignalrCustomerService signalrCustomerService,
                               ICustomerServiceOnlineAppService customerServiceOnlineAppService,
                               IFileServer fileServer, IWebUrlService webUrlService,
                               IBackgroundJobManager backgroundJobManager)
 {
     _accessTokenContainer   = accessTokenContainer;
     _mpAccountAppService    = mpAccountAppService;
     _mpFanAppService        = mpFanAppService;
     _cacheManager           = cacheManager;
     _signalrCustomerService = signalrCustomerService;
     _cYConfigAppService     = cYConfigAppService;
     _customerServiceResponseTextAppService    = customerServiceResponseTextAppService;
     _customerServiceConversationAppService    = customerServiceConversationAppService;
     _customerServiceConversationMsgAppService = customerServiceConversationMsgAppService;
     _fileServer    = fileServer;
     _webUrlService = webUrlService;
     _customerServiceOnlineAppService = customerServiceOnlineAppService;
     Logger = NullLogger.Instance;
     _backgroundJobManager = backgroundJobManager;
 }
Example #2
0
 public UserApiController(IMpApiTokenAppService mpApiTokenAppService
                          , IMpFanAppService mpFanAppService
                          , IMpFansTagItemAppService mpFansTagItemAppService)
 {
     _mpApiTokenAppService    = mpApiTokenAppService;
     _mpFanAppService         = mpFanAppService;
     _mpFansTagItemAppService = mpFansTagItemAppService;
 }
Example #3
0
 public SendMessageEvent(ILogger logger, IMpMessageAppService mpMessageAppService, IMpGroupAppService mpGroupAppService, IMpAccountAppService mpAccountAppService, IMpFanAppService mpFanAppService, IMpMediaVideoAppService mpMediaVideoAppService, IAccessTokenContainer accessTokenContainer)
 {
     LogWriter               = logger;
     _mpMessageAppService    = mpMessageAppService;
     _mpGroupAppService      = mpGroupAppService;
     _mpAccountAppService    = mpAccountAppService;
     _mpFanAppService        = mpFanAppService;
     _mpMediaVideoAppService = mpMediaVideoAppService;
     _accessTokenContainer   = accessTokenContainer;
 }
Example #4
0
 public SendChunYuPreCloseMessage(ICacheManager cacheManager, IAccessTokenContainer accessTokenContainer, ICYConfigAppService cYConfigAppService, IChunYuService chunYuService, ICYProblemAppService cYProblemAppService, IMpFanAppService mpFanAppService, IMpAccountAppService mpAccountAppService, IWebUrlService webUrlService)
 {
     _accessTokenContainer = accessTokenContainer;
     _cacheManager         = cacheManager;
     _chunYuService        = chunYuService;
     _cYConfigAppService   = cYConfigAppService;
     _cYProblemAppService  = cYProblemAppService;
     _mpFanAppService      = mpFanAppService;
     _mpAccountAppService  = mpAccountAppService;
     _webUrlService        = webUrlService;
 }
 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 CustomerQuestionJoin(
     ICacheManager cacheManager,
     ICustomerServiceConversationAppService customerServiceConversationAppService,
     IMpFanAppService mpFanAppService,
     IAccessTokenContainer accessTokenContainer,
     IMpAccountAppService mpAccountAppService,
     ISignalrCustomerService signalrCustomerService,
     ICustomerServiceOnlineAppService customerServiceOnlineAppService)
 {
     _cacheManager = cacheManager;
     _customerServiceConversationAppService = customerServiceConversationAppService;
     _mpFanAppService                 = mpFanAppService;
     _accessTokenContainer            = accessTokenContainer;
     _mpAccountAppService             = mpAccountAppService;
     _signalrCustomerService          = signalrCustomerService;
     _customerServiceOnlineAppService = customerServiceOnlineAppService;
 }
Example #8
0
 public SendMessageImmediatelyJob(ILogger logger,
                                  IMpMessageAppService mpMessageAppService,
                                  IMpGroupAppService mpGroupAppService,
                                  IMpFanAppService mpFanAppService,
                                  IMpMediaVideoAppService mpMediaVideoAppService,
                                  IMpAccountAppService mpAccountAppService,
                                  IAccessTokenContainer accessTokenContainer,
                                  ITaskGroupMessageAppService taskGroupMessageAppService,
                                  IMpUserMemberAppService userMemberAppService)
 {
     LogWriter                   = logger;
     _mpMessageAppService        = mpMessageAppService;
     _mpGroupAppService          = mpGroupAppService;
     _mpFanAppService            = mpFanAppService;
     _mpMediaVideoAppService     = mpMediaVideoAppService;
     _mpAccountAppService        = mpAccountAppService;
     _accessTokenContainer       = accessTokenContainer;
     _taskGroupMessageAppService = taskGroupMessageAppService;
     _userMemberAppService       = userMemberAppService;
 }
Example #9
0
        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);
            };
        }