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;
 }
Beispiel #2
0
 public UserMpAppService(IRepository <UserMp, int> repository, IUserMpListExcelExporter userMpListExcelExporter, IAbpSession abpSession, IMpAccountAppService mpAccountAppService, ICacheManager cacheManager) : base(repository)
 {
     _userMpListExcelExporter = userMpListExcelExporter;
     _abpSession          = abpSession;
     _mpAccountAppService = mpAccountAppService;
     _cacheManager        = cacheManager;
 }
        public MpMediaArticlesController(IMpMediaArticleAppService mpMediaArticleAppService,
                                         IUserMpAppService userMpAppService,
                                         IHostingEnvironment host,
                                         IWxMediaUpload wxMediaUpload,
                                         IFileServer fileServer
                                         , IMpMediaImageAppService mpMediaImageAppService
                                         , IWebUrlService webUrlService
                                         , IMatialFileService matialFileService
                                         , IMpAccountAppService mpAccountAppService
                                         , IMpUserMemberAppService mpUserMemberAppService
                                         , IWxMediaAppService wxMediaAppService)

        {
            _mpMediaArticleAppService = mpMediaArticleAppService;
            _userMpAppService         = userMpAppService;
            _host                   = host;
            _wxMediaUpload          = wxMediaUpload;
            _fileServer             = fileServer;
            _mpMediaImageAppService = mpMediaImageAppService;
            _webUrlService          = webUrlService;
            _matialFileService      = matialFileService;
            _mpAccountAppService    = mpAccountAppService;
            _mpUserMemberAppService = mpUserMemberAppService;
            _wxMediaAppService      = wxMediaAppService;
        }
 public WxKeFuMessageHandler(ICacheManager cacheManager, ICYConfigAppService cYConfigAppService, IMpAccountAppService mpAccountAppService, IAccessTokenContainer accessTokenContainer, ICustomerServiceResponseTextAppService customerServiceResponseTextAppService)
 {
     _accessTokenContainer = accessTokenContainer;
     _mpAccountAppService  = mpAccountAppService;
     _cacheManager         = cacheManager;
     _cYConfigAppService   = cYConfigAppService;
     _customerServiceResponseTextAppService = customerServiceResponseTextAppService;
     Logger = NullLogger.Instance;
 }
Beispiel #5
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;
 }
Beispiel #6
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 WxMediaAppService(IUserMpAppService userMpAppService, IAppFolders appFolders, IMpAccountAppService mpAccountAppService, IAccessTokenContainer accessTokenContainer, ILogger _logger, ICacheManager cacheManager, IAbpSession abpSession, IHostingEnvironment env)
 {
     _appFolders           = appFolders;
     _mpAccountAppService  = mpAccountAppService;
     _accessTokenContainer = accessTokenContainer;
     _userMpAppService     = userMpAppService;
     Logger        = _logger;
     _cacheManager = cacheManager;
     _abpSession   = abpSession;
     _env          = env;
 }
Beispiel #8
0
 public CustomerServiceOnlinesController(ICustomerServiceOnlineAppService CustomerServiceOnlineAppService, IUserMpAppService userMpAppService, IMpAccountAppService mpAccountAppService, IFileServer fileServer, IWxMediaUpload wxMediaUpload,
                                         IWxMediaAppService wxMediaAppService, IWebUrlService webUrlService, IMatialFileService matialFileService)
 {
     _CustomerServiceOnlineAppService = CustomerServiceOnlineAppService;
     _userMpAppService    = userMpAppService;
     _mpAccountAppService = mpAccountAppService;
     _fileServer          = fileServer;
     _wxMediaUpload       = wxMediaUpload;
     _wxMediaAppService   = wxMediaAppService;
     _webUrlService       = webUrlService;
     _matialFileService   = matialFileService;
 }
 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;
 }
Beispiel #11
0
 public UploadController(IAppFolders appFolders, ICacheManager cacheManager, IMpMediaImageAppService mpMediaImageAppService, IUserMpAppService userMpAppService, IMpAccountAppService mpAccountAppService, IAccessTokenContainer accessTokenContainer, IWxMediaAppService wxMediaAppService, IMpMediaVideoAppService mpMediaVideoAppService, IMpMediaVoiceAppService mpMediaVoiceAppService,
                         IMatialFileService matialFileService)
 {
     _appFolders             = appFolders;
     _cacheManager           = cacheManager;
     _mpMediaImageAppService = mpMediaImageAppService;
     _userMpAppService       = userMpAppService;
     _mpAccountAppService    = mpAccountAppService;
     _accessTokenContainer   = accessTokenContainer;
     _wxMediaAppService      = wxMediaAppService;
     _mpMediaVideoAppService = mpMediaVideoAppService;
     _mpMediaVoiceAppService = mpMediaVoiceAppService;
     _matialFileService      = matialFileService;
 }
 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;
 }
Beispiel #13
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;
 }
Beispiel #14
0
 public WechatGroupRefreshNowJob(ILogger logger, IMpAccountAppService mpAccountAppService, IAccessTokenContainer accessTokenContainer)
 {
     LogWriter             = logger;
     _mpAccountAppService  = mpAccountAppService;
     _accessTokenContainer = accessTokenContainer;
 }
Beispiel #15
0
 public MpAccountsController(IMpAccountAppService mpAccountAppService)
 {
     _mpAccountAppService = mpAccountAppService;
 }
Beispiel #16
0
 public WxMediaUploadBaseHandler(IAccessTokenContainer accessTokenContainer, IMpAccountAppService mpAccountAppService, ILogger _Logger)
 {
     _accessTokenContainer = accessTokenContainer;
     _mpAccountAppService  = mpAccountAppService;
     Logger = _Logger;
 }
        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);
            };
        }