提交:新增Redis固定写时间,确认活跃
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user