mirror of
https://github.com/Karaka-Management/oms-Monitoring.git
synced 2026-01-11 16:38:40 +00:00
update
This commit is contained in:
parent
e0b9c18447
commit
7a2c359051
|
|
@ -51,9 +51,13 @@ final class CliController extends Controller
|
|||
/** @var \Model\Setting $emailSettings */
|
||||
$emailSettings = $this->app->appSettings->get(
|
||||
names: SettingsEnum::MAIL_SERVER_ADDR,
|
||||
module: 'OnlineResourceWatcher'
|
||||
module: 'Admin'
|
||||
);
|
||||
|
||||
if (empty($emailSettings->content)) {
|
||||
return new NullView();
|
||||
}
|
||||
|
||||
$today = new \DateTime('now');
|
||||
|
||||
$hasErrorReport = \is_file($file = __DIR__ . '/../../../Logs/' . $today->format('Y-m-d') . '.log');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user