提交:新增Redis固定写时间,确认活跃

This commit is contained in:
2025-12-31 14:24:40 +08:00
parent c3c6f77e9c
commit e26fd61be0
3 changed files with 8 additions and 3 deletions

View File

@@ -319,9 +319,11 @@ namespace Face.Web
Schedule(() =>
{
string batFilePath = "C:\\FaceConsole\\重启.bat"; ;
var rs = CSRedisCacheHelper.Get<string>("CSRedisCacheHelper");
if (rs == null)
var rs = CSRedisCacheHelper.Get<string>("LastWebCmdTime");
Logs.WriteTimingUDPLog("执行定时任务--LastWebCmdTime" + rs);
if (string.IsNullOrEmpty(rs))
{
Logs.WriteTimingUDPLog("启动--LastWebCmdTime" + rs);
Process.Start(new ProcessStartInfo()
{
FileName = batFilePath,