Esempio n. 1
0
 public AuditPassWeChatMsgBehavior(
     IOrchardServices os,
     ICardCouponService cardcoupon)
     : base(os)
 {
     this.CardCoupon = cardcoupon;
 }
Esempio n. 2
0
 public UserGetCardWeChatMsgBehavior(
     IOrchardServices os,
     IWxUserService userService,
     IWeChatApi weChat,
     ICardCouponService ccService)
     : base(os)
 {
     this.WxUserService = userService;
     this.WeChat        = weChat;
     this.CardCoupon    = ccService;
     Logger             = NullLogger.Instance;
 }
Esempio n. 3
0
        public CardsController(
            IOrchardServices os,
            ICardCouponService cardcoupn,
            IMerchantService merchant,
            IEnjoyAuthService auth,

            IWeChatApi wechat)
        {
            this.OS         = os;
            this.WeChat     = wechat;
            this.CardCoupon = cardcoupn;
            this.Merchant   = merchant;
            this.Auth       = auth;
        }
Esempio n. 4
0
        public override void Init()
        {
            base.Init();
            var os = _container.Resolve <IOrchardServices>();

            _merchantService     = _container.Resolve <IMerchantService>();
            _verifyCodeGenerator = _container.Resolve <IVerifyCodeGenerator>();
            long.TryParse(_verifyCodeGenerator.GenerateNewVerifyCode(), out _merchantid);
            _enjoyAuthService  = _container.Resolve <IEnjoyAuthService>();
            _weChatMsgHandler  = _container.Resolve <IWeChatMsgHandler>();
            _cardCouponService = _container.Resolve <ICardCouponService>();
            _weChatApi         = _container.Resolve <IWeChatApi>();
            CreatingEnjoyUserAndMerchant();
            //CreatingCardCoupon();
        }
Esempio n. 5
0
 public EnjoyController(
     IOrchardServices os,
     IEnjoyAuthService auth,
     IWeChatApi wechat,
     IMerchantService merchant,
     IWxUserService wxUserService,
     IShopService shop,
     ICardCouponService cardCoupon,
     IWeChatMsgHandler handler)
 {
     this._authService       = auth;
     this._os                = os;
     this._merchantService   = merchant;
     this._weChat            = wechat;
     this.Logger             = NullLogger.Instance;
     this._handler           = handler;
     this._wxUserService     = wxUserService;
     this._shopservice       = shop;
     this._cardCouponService = cardCoupon;
 }
Esempio n. 6
0
 public CardSkuRemindWeChatMsgBehavior(
     IOrchardServices os,
     ICardCouponService cardCoupon) : base(os)
 {
     this.CardCoupon = cardCoupon;
 }