Exemplo n.º 1
0
 public BudgetController(BudgetService service, IHttpContextAccessor accessor)
 {
     _service  = service;
     _accessor = accessor;
     wx        = new WxHelper(_accessor.HttpContext);
     userInfo  = wx.CheckAndGetUserInfo();
 }
 public MemberManageController(IHttpContextAccessor accessor)
 {
     //serv = clientService;
     _accessor = accessor;
     wx        = new WxHelper(_accessor.HttpContext, "reimburse");
     userInfo  = wx.CheckAndGetUserInfo();
 }
Exemplo n.º 3
0
 public TravelApplyController(TravelApplyService travelApplyService, IHttpContextAccessor accessor)
 {
     _service  = travelApplyService;
     _accessor = accessor;
     wx        = new WxHelper(_accessor.HttpContext, "travelApply");
     userInfo  = wx.CheckAndGetUserInfo();
 }
        public ClientController(ClientService clientService, IHttpContextAccessor accessor)
        {
            serv      = clientService;
            _accessor = accessor;
            WxHelper wx = new WxHelper(_accessor.HttpContext);

            userInfo = wx.CheckAndGetUserInfo();
        }
        public FlowController(FlowService flowService, IHttpContextAccessor accessor)
        {
            _service  = flowService;
            _accessor = accessor;
            WxHelper wx = new WxHelper(_accessor.HttpContext);

            userInfo = wx.CheckAndGetUserInfo();
            if (userInfo.code == 2)
            {
                Redirect(userInfo.message);
            }
        }