改名
This commit is contained in:
@@ -141,6 +141,18 @@ class Snowflake
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function clearWorkerId()
|
||||
{
|
||||
$dir = storage(null, 'worker');
|
||||
foreach (glob($dir . '/*') as $file) {
|
||||
@unlink($file);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $fileName
|
||||
* @param $content
|
||||
|
||||
Reference in New Issue
Block a user