Commit 8583628b authored by 黄奎's avatar 黄奎

新增测试方法

parent 12d721e2
......@@ -41,7 +41,15 @@ namespace Edu.WebApi.Controllers.User
/// 公用处理类
/// </summary>
private readonly PublicModule publicModule = new PublicModule();
[HttpGet]
[HttpPost]
[AllowAnonymous]
public ApiResult Test()
{
return ApiResult.Success();
}
/// <summary>
/// 用户登录
/// </summary>
......
......@@ -50,6 +50,7 @@ namespace Edu.WebApi
"http://mall.oytour.com",
"http://testmall.oytour.com",
"http://yx.oytour.com",
"http://edu.oytour.com",
};
services.AddCors(options => options.AddPolicy("AllowCors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().WithOrigins(corsArray.ToArray())));
}
......
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