From adba6649295f2eec3c69d3edebc89e31a22969da Mon Sep 17 00:00:00 2001 From: liuyangyi Date: Wed, 26 Jun 2024 23:42:04 +0800 Subject: [PATCH] feat:bug fixed --- New_College.Model/Models/D_NewsInfo.cs | 5 +++-- New_College.Tasks/HostedService/JobTimedSpiderService.cs | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/New_College.Model/Models/D_NewsInfo.cs b/New_College.Model/Models/D_NewsInfo.cs index 7ce4ff4..0b8dc9a 100644 --- a/New_College.Model/Models/D_NewsInfo.cs +++ b/New_College.Model/Models/D_NewsInfo.cs @@ -1,4 +1,5 @@ -using System; +using SqlSugar; +using System; using System.Collections.Generic; using System.Text; @@ -26,7 +27,7 @@ namespace New_College.Model.Models /// public string Summary { get; set; } - + [SugarColumn(ColumnDataType = "longtext", Length = int.MaxValue, IsNullable = true)] public string Detail { get; set; } /// diff --git a/New_College.Tasks/HostedService/JobTimedSpiderService.cs b/New_College.Tasks/HostedService/JobTimedSpiderService.cs index 6841cd5..7c8e97a 100644 --- a/New_College.Tasks/HostedService/JobTimedSpiderService.cs +++ b/New_College.Tasks/HostedService/JobTimedSpiderService.cs @@ -50,7 +50,8 @@ namespace New_College.Tasks ProvinceCode = "370000", CreateId = 1, CreateTime = c.pubtime, - Detail = c.detail, + + // Detail = c.detail, CoverImg = "https://static-data.ycymedu.com/static/newstop.png", OrderSort = 0, IsDelete = false,