改名
This commit is contained in:
@@ -268,11 +268,7 @@ abstract class Crontab extends BaseObject
|
|||||||
if ($params === null) {
|
if ($params === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$name = date('Y-m-d') . '.log';
|
write(Json::encode(['name' => $this->name, 'response' => serialize($params)]), 'crontab');
|
||||||
write(storage($name, 'log/crontab'), Json::encode([
|
|
||||||
'name' => $this->name,
|
|
||||||
'response' => serialize($params)
|
|
||||||
]));
|
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
logger()->addError($throwable, 'throwable');
|
logger()->addError($throwable, 'throwable');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user