예제 #1
0
        public IActionResult OnPostQueryList(int pageIndex, int pageSize)
        {
            ResultList <RInviteLog> result = new ResultList <RInviteLog>();

            try
            {
                var us = base.GetUserSession(false);
                if (us != null)
                {
                    int totalPages;
                    result.List      = _SalesSrv.QueryInviteLog(us.OpenId, out totalPages, 1, 5);
                    result.TotlaPage = totalPages;
                }
                else
                {
                    result.IntMsg   = -1;
                    result.ErrorMsg = "需要您重新登录!";
                }
            }
            catch (Exception ex)
            {
                result.ErrorMsg = "获取数据失败!";
                NLogHelper.ErrorTxt($"邀请列表[OnPostQueryList]:{ex.Message}");
            }
            return(new JsonResult(result));
        }
예제 #2
0
        public void OnGet()
        {
            var us = GetUserSession();

            if (us != null)
            {
                QRInvite = _SalesSrv.GetQRInvite(us.OpenId);

                if (QRInvite != null)
                {
                    int totalPages;
                    InviteLog = _SalesSrv.QueryInviteLog(us.OpenId, out totalPages, 1, 5);

                    //   InitWxConfig();
                }
            }
        }