From 32913fa3e17e3eba995e51c0aa09937b7f55cf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 31 Aug 2020 21:34:04 +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, 9 insertions(+), 1 deletion(-) diff --git a/system/Snowflake.php b/system/Snowflake.php index 0f11fa16..02c2a0f0 100644 --- a/system/Snowflake.php +++ b/system/Snowflake.php @@ -108,6 +108,15 @@ class Snowflake } + /** + * @return Container + */ + public static function getDi() + { + return static::$container; + } + + /** * @param $workerId * @return false|int|mixed @@ -127,7 +136,6 @@ class Snowflake */ public static function writeFile($fileName, $content, $is_append = FILE_APPEND) { - return false; if (self::inCoroutine()) { return Coroutine::writeFile($fileName, $content, $is_append); } else {