|
|
@@ -33,13 +33,13 @@ public class OnlineUserJob : IJob
|
|
|
|
|
|
var originColor = Console.ForegroundColor;
|
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
|
- Console.WriteLine("【" + DateTime.Now + "】清空在线用户列表");
|
|
|
+ Console.WriteLine($"【{DateTime.Now}】清空在线用户列表");
|
|
|
Console.ForegroundColor = originColor;
|
|
|
|
|
|
// 缓存租户列表
|
|
|
await serviceScope.ServiceProvider.GetRequiredService<SysTenantService>().CacheTenant();
|
|
|
|
|
|
// 自定义日志
|
|
|
- _logger.LogInformation("服务已重启...");
|
|
|
+ _logger.LogInformation($"【{DateTime.Now}】服务已重启...");
|
|
|
}
|
|
|
}
|