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 {