net_beian/Controllers/DefaultController.cs
(开头部分) 42KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using net_beian.Models.CMS;
using net_beian.Models.Receipt;
using Newtonsoft.Json;
using System.Text.RegularExpressions;
using System.Text;
using net_beian.Models.comm;
using System.Data.Entity.Core.Objects;
using System.Runtime.InteropServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using net_beian.Models;
using PagedList;
#if CMS
#endif
//using Webdiyer.WebControls.Mvc;
//https://github.com/troygoode/PagedList
/*
* NuGet - 安装 "PagedList.Mvc"
*/
namespace net_beian.Controllers
{
public class DefaultController : baseHomeController //BaseController
{
public override ActionResult Index()
{
Title = "官网-首页";
//图片新闻
var infolist =
_db.information.Where(e => e.picNews && e.IsValid && !e.IsDeleted && e.IsPassed)
.OrderByDescending(e => e.IsIntop)
.ThenByDescending(x => x.CreateTime)
.Select(c => new PicNewsList
{
InformationId = c.InformationId,
title = c.title,
picName = c.picName,
//Summary = c.content==null? "":c.content.Substring(1, 100)
}).Take(10).ToList();
ViewBag.picnewsList = infolist;/*(new net_beian.Models.JavaScriptSerializer()).JsonSerializer(infolist);/*new swfobj()
{
infolist=infolist
};*/
ViewBag.ICP = ICP;
return View();
}
/// <summary>
/// 文章列表
/// </summary>
/// <param name="cateid"></param>
/// <param name="titleLength"></param>
/// <param name="dataCount"></param>
后面还有 829 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
