Commit 872978a1 authored by 黄奎's avatar 黄奎

页面修改

parent 2dbba6a2
......@@ -30,6 +30,18 @@ namespace EduSpider.WebApi.Controllers
[Autowired]
public IAccountService AccountService { get; set; }
/// <summary>
/// 心跳检测
/// </summary>
/// <returns></returns>
[HttpGet]
[HttpPost]
[AllowAnonymous]
public ApiResult Heart()
{
return ApiResult.Success();
}
#region 账号密码登录
/// <summary>
/// 账号密码登录
......
using Autofac;
using Edu.WebApi.Filter;
using EduSpider.WebApi.Timers;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Controllers;
......@@ -49,6 +50,7 @@ namespace EduSpider.WebApi
options.JsonSerializerOptions.Encoder = System.Text.Encodings.Web.JavaScriptEncoder.Create(System.Text.Unicode.UnicodeRanges.All);
options.JsonSerializerOptions.PropertyNamingPolicy = null;
});
services.AddHostedService<TimedTaskServices>();
}
/// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment