public static JsonModelUser_Total GetUserInfo_Helper(int pageIndex, int PageSize, string Key, bool IsLast)
        {
            JsonModelUser_Total jsm = null;

            try
            {
                List <UserInfo> UserInfo_List = Constant.UserInfo_List;
                List <MoneyLog> MoneyLog_List = Constant.MoneyLog_List;
                var             userList      = (from user in UserInfo_List
                                                 where user.Role != 1 && user.Name.Contains(Key)
                                                 orderby user.CreateTime descending
                                                 select new
                {
                    user.Id,
                    user.Name,
                    user.Money,
                    user.IsEnable,
                    user.LoginName,
                    user.CreateTime,
                    user.EnableTime,
                }).ToList();

                if (IsLast)
                {
                    userList = (from user in userList where user.CreateTime >= DateTime.Now.AddDays(-7) select user).ToList();
                }

                var userListt_get = userList.Skip((pageIndex - 1) * PageSize).Take(PageSize).ToList();
                jsm           = JsonModelUser_Total.GetJsonModel(0, "success", userListt_get);
                jsm.PageIndex = pageIndex;
                jsm.PageSize  = PageSize;
                jsm.PageCount = (userList.Count + PageSize - 1) / PageSize;;

                jsm.PersonCount = userList.Count;

                decimal allMoney = 0;
                decimal allCash  = 0;
                foreach (var item in userListt_get)
                {
                    allMoney += (decimal)item.Money;

                    List <MoneyLog> mons = MoneyLog_List.Where(i => i.UserID == item.LoginName && i.OperationType == (int)MoneyType.提现).ToList();
                    foreach (var mon in mons)
                    {
                        allCash += (decimal)mon.O_Money;
                    }
                }
                jsm.AllMoney  = allMoney;
                jsm.CashMoney = allCash;

                jsm.RowCount = userList.Count;
            }
            catch (Exception ex)
            {
                LogHelper.Error(ex);
            }
            return(jsm);
        }
        public void GetUserInfo(HttpContext context)
        {
            JsonModelUser_Total jsonModelNum = null;

            try
            {
                HttpRequest request = context.Request;
                string      UID     = RequestHelper.string_transfer(request, "UID");
                string      dsp     = RequestHelper.string_transfer(request, "dsp");
                string      Key     = RequestHelper.string_transfer(request, "Key");
                bool        IsLast  = RequestHelper.bool_transfer(request, "IsLast");

                int PageIndex = RequestHelper.int_transfer(request, "PageIndex");
                int PageSize  = RequestHelper.int_transfer(request, "PageSize");

                bool result = Constant.Check_Login_DIP_Admin(UID, dsp);
                if (result)
                {
                    jsonModelNum = GetUserInfo_Helper(PageIndex, PageSize, Key, IsLast);
                }
                else
                {
                    jsonModelNum = JsonModelUser_Total.GetJsonModel(1000, "已超时");
                }
            }
            catch (Exception ex)
            {
                jsonModelNum = JsonModelUser_Total.GetJsonModel(400, ex.Message);
                LogHelper.Error(ex);
            }
            finally
            {
                //无论后端出现什么问题,都要给前端有个通知【为防止jsonModel 为空 ,全局字段 jsonModel 特意声明之后进行初始化】
                context.Response.Write("{\"result\":" + Constant.jss.Serialize(jsonModelNum) + "}");
            }
        }