提交:新增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

3
.vscode/settings.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"dotnet.preferCSharpExtension": true
}

View File

@@ -21,7 +21,7 @@
</WebStackScaffolding_LayoutPageFile>
<WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected>
<WebStackScaffolding_ViewDialogWidth>600</WebStackScaffolding_ViewDialogWidth>
<NameOfLastUsedPublishProfile>E:\Project_Class\OLD_PROJECT\Faces_Web_Prod\Face.Web\Properties\PublishProfiles\FolderProfile3.pubxml</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<View_SelectedScaffolderID>MvcViewScaffolder</View_SelectedScaffolderID>
<View_SelectedScaffolderCategoryPath>root/Common/MVC/View</View_SelectedScaffolderCategoryPath>
</PropertyGroup>

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,