Beispiel #1
0
        /// <summary>
        /// 查询当前分红
        /// </summary>
        public JsonResult GetNowCoins(string useraddress, int?page, int?rows)
        {
            if (page == null)
            {
                page = 1;
            }
            if (rows == null)
            {
                rows = 20;
            }
            var total = 0;
            var list  = new List <NowCoinsReports>();

            if (string.IsNullOrWhiteSpace(useraddress))
            {
                list = NodeNewBlocksBLL.GetBlocksByAddressAndWay(null, "generate", null, null, rows.Value, page.Value, ref total);
            }
            else
            {
                list = UserInComesOnlineBLL.GetInComesOnlineBySome(useraddress, null, null, null, rows.Value, page.Value, ref total);
            }
            var result = new { total = total, rows = list };

            return(Json(result));
        }