/// <summary>
 /// 构造函数注入
 /// </summary>
 /// <param name="options"></param>
 /// <param name="recharge"></param>
 /// <param name="biz"></param>
 /// <param name="alipayService"></param>
 public AlipayNotifyController(IOptions <AliPaySetting> options, IRecharge recharge, IBiz biz, IAlipayService alipayService, IAccout accouts)
 {
     _appSettings   = options.Value;
     _recharge      = recharge;
     _biz           = biz;
     _log           = LogManager.GetLogger(Startup.repository.Name, typeof(AlipayNotifyController));
     _alipayService = alipayService;
     _accout        = accouts;
 }
Esempio n. 2
0
 public RechargeService(IMapper mapper, FunHaiNanContext context, IOptions <StraitAliPaySetting> straitAliPay, IOptions <AliPaySetting> options, ISystems sys, IOptions <ApplepaySetting> optionsApple, IAlipayService alipayService)
 {
     _context = context;
     _mapper  = mapper;
     //_options = options;
     _appSettings   = options.Value;
     _sys           = sys;
     _applepay      = optionsApple.Value;
     _alipayService = alipayService;
     _straitAliPay  = straitAliPay.Value;
 }