From 5ce37e93fd95fc2e107582baf43deaee52d2107f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 22 Apr 2021 13:53:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Crontab/Crontab.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/System/Crontab/Crontab.php b/System/Crontab/Crontab.php index 93bdfbd4..f4d96afe 100644 --- a/System/Crontab/Crontab.php +++ b/System/Crontab/Crontab.php @@ -268,11 +268,7 @@ abstract class Crontab extends BaseObject if ($params === null) { return; } - $name = date('Y-m-d') . '.log'; - write(storage($name, 'log/crontab'), Json::encode([ - 'name' => $this->name, - 'response' => serialize($params) - ])); + write(Json::encode(['name' => $this->name, 'response' => serialize($params)]), 'crontab'); } catch (\Throwable $throwable) { logger()->addError($throwable, 'throwable'); }