改名
This commit is contained in:
@@ -108,6 +108,15 @@ class Snowflake
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Container
|
||||||
|
*/
|
||||||
|
public static function getDi()
|
||||||
|
{
|
||||||
|
return static::$container;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $workerId
|
* @param $workerId
|
||||||
* @return false|int|mixed
|
* @return false|int|mixed
|
||||||
@@ -127,7 +136,6 @@ class Snowflake
|
|||||||
*/
|
*/
|
||||||
public static function writeFile($fileName, $content, $is_append = FILE_APPEND)
|
public static function writeFile($fileName, $content, $is_append = FILE_APPEND)
|
||||||
{
|
{
|
||||||
return false;
|
|
||||||
if (self::inCoroutine()) {
|
if (self::inCoroutine()) {
|
||||||
return Coroutine::writeFile($fileName, $content, $is_append);
|
return Coroutine::writeFile($fileName, $content, $is_append);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user