Beispiel #1
0
        public ActionResult ShowIntroduce(string url)
        {
            var html = RemoteWebHelper.GetHtml(url);

            Response.Write(html);
            return(View());
        }
Beispiel #2
0
        // GET: Stock/Simulate
        #region  刷比赛列表数据
        public ActionResult Index(string url = "")
        {
            var pageIndex = 1;

            pageIndex = Request["pageIndex"] != null?Convert.ToInt32(Request["pageIndex"]) : 1;

            var categoryID = 1;

            categoryID = Request["categoryID"] != null?Convert.ToInt32(Request["categoryID"]) : 1;

            if (string.IsNullOrEmpty(url))
            {
                pageIndex  = 1;
                categoryID = 1;
                url        = "http://www.cofool.com/Group/more/category/" + categoryID;
            }
            if (pageIndex + 1 > 30)
            {
                pageIndex = 0;
                categoryID++;
            }
            ViewBag.NextPageIndex = pageIndex + 1;

            ViewBag.CategoryID = categoryID;
            //    url = url.Replace("&pageIndex="+ pageIndex, "");
            var html = RemoteWebHelper.GetHtml(url);

            Response.Write(html);
            return(View());
        }
Beispiel #3
0
        public ActionResult Introduce(int matchID = 1)
        {
            var item = MatchService.GetMatchByMatchID(matchID);

            if (item == null)
            {
                return(RedirectToAction("Introduce", "Simulate", new { matchID = matchID + 1 }));
            }
            var html = RemoteWebHelper.GetHtml(item.IntroduceUrl);

            Response.Write(html);
            ViewBag.NextMatchID = matchID + 1;
            return(View());
        }
Beispiel #4
0
        public ActionResult UserMatchInfo(int ID = 1)
        {
            if (ID == 1)
            {
                ID = MatchService.GetMaxTopID();
            }
            var item = MatchService.GetTopByID(ID);
            // item.UserURL = "http://www.cofool.com/Home/User/index/uid/4971723/gid/16849.html";
            var html = RemoteWebHelper.GetHtml(item.UserURL);

            Response.Write(html);
            ViewBag.NextID = ID - 1;
            return(View());
        }
Beispiel #5
0
        public ActionResult Top(int matchID = 1)
        {
            if (matchID == 1 || matchID == 0)
            {
                matchID = MatchService.GetMaxMatchID();
            }
            var item = MatchService.GetMatchByMatchID(matchID);

            if (item != null)
            {
                var html = RemoteWebHelper.GetHtml(item.TopUrl);
                Response.Write(html);
            }
            else
            {
                return(RedirectToAction("Top", "Simulate", new { matchID = matchID - 1 }));
            }
            ViewBag.NextMatchID = matchID - 1;
            return(View());
        }