From bb1078c6fff7b653d27e5cc2c568cf99d20deab2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com>
Date: Tue, 14 Oct 2025 16:14:18 +0800
Subject: [PATCH] bug fixed
---
New_College.Api/Controllers/Front/LibraryController.cs | 1 +
New_College.Tasks/HostedService/JobTimedSpiderService.cs | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/New_College.Api/Controllers/Front/LibraryController.cs b/New_College.Api/Controllers/Front/LibraryController.cs
index 397ac75..0f5791f 100644
--- a/New_College.Api/Controllers/Front/LibraryController.cs
+++ b/New_College.Api/Controllers/Front/LibraryController.cs
@@ -308,6 +308,7 @@ namespace New_College.Api.Controllers.Front
///
///
[HttpGet]
+ [AllowAnonymous]
public async Task> GetUniversityDetails([FromQuery] IdQuery query)
{
var result = await iD_LongIdMapServices.GetUniversityDetails(query);
diff --git a/New_College.Tasks/HostedService/JobTimedSpiderService.cs b/New_College.Tasks/HostedService/JobTimedSpiderService.cs
index 23cfc00..9bb23ba 100644
--- a/New_College.Tasks/HostedService/JobTimedSpiderService.cs
+++ b/New_College.Tasks/HostedService/JobTimedSpiderService.cs
@@ -29,8 +29,8 @@ namespace New_College.Tasks
{
Console.WriteLine("Job spider is starting.");
- _timer = new Timer(DoWork, null, TimeSpan.Zero,
- TimeSpan.FromSeconds(60 * 60 * 8));//两个小时
+ //_timer = new Timer(DoWork, null, TimeSpan.Zero,
+ // TimeSpan.FromSeconds(60 * 60 * 8));//两个小时
return Task.CompletedTask;
}