/// <summary>
 /// 构造函数
 /// </summary>
 public PurchaseRecordAppService(IRepository <PurchaseRecord, Guid> purchaserecordRepository
                                 , IRepository <IntegralDetail, Guid> integralDetailRepository
                                 , IRepository <WeChatUser, Guid> weChatUserRepository
                                 , IRepository <MemberConfig, Guid> memberConfigRepository
                                 , IRepository <Shop, Guid> shopRepository
                                 , IRepository <Product, Guid> productRepository
                                 , IPurchaseRecordManager purchaserecordManager
                                 , IRepository <ShopEvaluation, Guid> shopevaluationRepository
                                 , IWechatAppConfigAppService wechatAppConfigAppService
                                 , IRepository <WechatAppConfig, int> wechatappconfigRepository
                                 , IRepository <StatisticalDetail, Guid> statisticaldetailRepository
                                 )
 {
     _purchaserecordRepository  = purchaserecordRepository;
     _integralDetailRepository  = integralDetailRepository;
     _weChatUserRepository      = weChatUserRepository;
     _memberConfigRepository    = memberConfigRepository;
     _shopRepository            = shopRepository;
     _productRepository         = productRepository;
     _purchaserecordManager     = purchaserecordManager;
     _shopevaluationRepository  = shopevaluationRepository;
     _wechatAppConfigAppService = wechatAppConfigAppService;
     TenantId  = null;
     AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
     _wechatappconfigRepository   = wechatappconfigRepository;
     _statisticaldetailRepository = statisticaldetailRepository;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public WeChatGroupAppService(IRepository <WeChatGroup, int> wechatgroupRepository
                              , IWeChatGroupManager wechatgroupManager, IWechatAppConfigAppService wechatAppConfigAppService
                              , IRepository <WeChatUser, Guid> wechatuserRepository
                              )
 {
     _wechatgroupRepository     = wechatgroupRepository;
     _wechatgroupManager        = wechatgroupManager;
     _wechatAppConfigAppService = wechatAppConfigAppService;
     TenantId              = null;
     AppConfig             = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
     _wechatuserRepository = wechatuserRepository;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public WeChatUserAppService(IRepository <WeChatUser, Guid> wechatuserRepository,
                             IWeChatUserManager wechatuserManager,
                             IRepository <WeChatGroup, int> wechatgroupRepository,
                             IWechatAppConfigAppService wechatAppConfigAppService,
                             IRepository <WechatAppConfig, int> wechatappconfigRepository
                             , IHostingEnvironment hostingEnvironment
                             )
 {
     _hostingEnvironment        = hostingEnvironment;
     _wechatuserRepository      = wechatuserRepository;
     _wechatuserManager         = wechatuserManager;
     _wechatgroupRepository     = wechatgroupRepository;
     _wechatAppConfigAppService = wechatAppConfigAppService;
     TenantId  = null;
     AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
     _wechatappconfigRepository = wechatappconfigRepository;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 public ExhibitionShopAppService(
     IRepository <ExhibitionShop, Guid> exhibitionshopRepository
     , IExhibitionShopManager exhibitionshopManager
     , IRepository <Shop, Guid> shopRepository
     , IRepository <Retailer, Guid> retailerRepository
     , IRepository <Exhibition, Guid> exhibitionRepository
     , IHostingEnvironment hostingEnvironment
     , IWeChatOAuthAppService weChatOAuthAppService
     , IWechatAppConfigAppService wechatAppConfigAppService
     )
 {
     _retailerRepository                    = retailerRepository;
     _shopRepository                        = shopRepository;
     _exhibitionshopRepository              = exhibitionshopRepository;
     _exhibitionshopManager                 = exhibitionshopManager;
     _exhibitionRepository                  = exhibitionRepository;
     _hostingEnvironment                    = hostingEnvironment;
     _weChatOAuthAppService                 = weChatOAuthAppService;
     _wechatAppConfigAppService             = wechatAppConfigAppService;
     _weChatOAuthAppService.WechatAppConfig = _wechatAppConfigAppService.GetWechatAppConfig(null).Result;
 }
Example #5
0
 protected virtual void InitAppConfigSetting()
 {
     TenantId        = GetTenantId();
     WechatAppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
     //WeChatRegister();
 }
Example #6
0
 public WeChatMenuAppService(IWechatAppConfigAppService wechatAppConfigAppService)
 {
     _wechatAppConfigAppService = wechatAppConfigAppService;
     TenantId  = 2;
     AppConfig = _wechatAppConfigAppService.GetWechatAppConfig(TenantId).Result;
 }