From ec0d1352070242cedfb73403f962847b661d653f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 4 Feb 2021 18:22:55 +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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/System/Snowflake.php b/System/Snowflake.php index 18b5deb9..515eb30f 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -264,6 +264,16 @@ class Snowflake } + /** + * @return mixed + */ + public static function localhost(): mixed + { + return Snowflake::app()->getFirstLocal(); + } + + + /** * @param string $class * @param array $params