diff --git a/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs b/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs index 93e27c7c5..568fea0b9 100644 --- a/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs +++ b/Src/Asp.Net/SqlSugar/DistributedSystem/Snowflake/SnowFlakeSingle.cs @@ -9,9 +9,10 @@ namespace SqlSugar public sealed class SnowFlakeSingle { public static readonly SnowFlakeSingle instance = new SnowFlakeSingle(); + public static int WorkId = 1; private SnowFlakeSingle() { - worker = new DistributedSystem.Snowflake.IdWorker(1, 1); + worker = new DistributedSystem.Snowflake.IdWorker(WorkId, 1); } static SnowFlakeSingle() { } public static SnowFlakeSingle Instance