This commit is contained in:
2020-09-07 16:28:31 +08:00
parent 4b3173922e
commit 6391a9e2ad
3 changed files with 16 additions and 0 deletions
+12
View File
@@ -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