Commit 3599837d authored by 黄奎's avatar 黄奎

页面修改

parent 62a2ee59
......@@ -623,6 +623,16 @@ namespace Edu.WebApi.Controllers.User
}
/// <summary>
/// 心跳检测,不要删除
/// </summary>
/// <returns></returns>
[HttpGet]
[HttpPost]
[AllowAnonymous]
public ApiResult Heart()
{
return ApiResult.Success();
}
}
}
\ No newline at end of file
......@@ -121,7 +121,7 @@ namespace Edu.WebApi.Timers
_timer?.Dispose();
//iis会回收这个定时任务,这边在回收的时候触发一个请求,来再次唤醒该服务
Thread.Sleep(5000);
string url = "https://eduapi.oytour.com/api/login/login";
string url = "https://eduapi.oytour.com/api/login/Heart";
Common.Plugin.HttpHelper.HttpGet(url);
}
}
......
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