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; }