From f32496d8a6df5827e585bb908a4559ccb1e4f7ae Mon Sep 17 00:00:00 2001 From: dao Date: Tue, 17 Dec 2024 15:17:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=E6=9C=89=E6=BC=8F=E6=B4=9E=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/UtilityController.cs | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs index 6e67524b6..519027b1a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UtilityController.cs @@ -269,29 +269,29 @@ namespace Learun.Application.Web.Controllers }.ToJson()); } - public ActionResult CrawlerHandler() - { - string[] sources = Request.Form.GetValues("source[]"); - if (sources == null || sources.Length == 0) - { - return Content(new - { - state = "参数错误:没有指定抓取源" - }.ToJson()); - } + //public ActionResult CrawlerHandler() + //{ + // string[] sources = Request.Form.GetValues("source[]"); + // if (sources == null || sources.Length == 0) + // { + // return Content(new + // { + // state = "参数错误:没有指定抓取源" + // }.ToJson()); + // } - UeditorCrawler[] crawlers = sources.Select(x => new UeditorCrawler(x).Fetch()).ToArray(); - return Content(new - { - state = "SUCCESS", - list = crawlers.Select(x => new - { - state = x.State, - source = x.SourceUrl, - url = x.ServerUrl - }) - }.ToJson()); - } + // UeditorCrawler[] crawlers = sources.Select(x => new UeditorCrawler(x).Fetch()).ToArray(); + // return Content(new + // { + // state = "SUCCESS", + // list = crawlers.Select(x => new + // { + // state = x.State, + // source = x.SourceUrl, + // url = x.ServerUrl + // }) + // }.ToJson()); + //} private string GetStateMessage(UeditorUploadState state) { switch (state)