This commit is contained in:
as2252258@163.com
2021-03-26 02:20:17 +08:00
parent e92c9b8780
commit c1ebf0ec6f
+5 -1
View File
@@ -199,7 +199,11 @@ class Crontab extends BaseObject
*/
public function execute(): void
{
var_dump(call_user_func($this->handler, $this->params, $this->name));
$params = call_user_func($this->handler, $this->params, $this->name);
if ($params !== null) {
$name = date('Y_m_d_H_i_s.' . $this->name . '.log');
write(storage($name, '/log/crontab'), serialize($params));
}
}