From 89b9cc6d1b9dcb00a08bfb5b9e63bc8ac8198fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 11 Sep 2020 18:20:08 +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/Snowflake.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Snowflake.php b/System/Snowflake.php index d57ec265..892f8630 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -139,6 +139,9 @@ class Snowflake */ public static function setWorkerId($workerId) { + if (empty($workerId)) { + return $workerId; + } return self::writeFile(storage($workerId . '.sock', 'worker'), $workerId); }