Skip to content

C# 版本能将DefaultIdGenerator改成虚方法、属性,内部接口、内公开出来 #133

Description

@1764564459

linux 环境无外网,系统时间会重置到1970

  1. 生成雪花Id,会出现错误:System.ApplicationException: BaseTime error.。
    • 主要这段代码校验出错
        if (options.BaseTime < DateTime.Now.AddYears(-50) || options.BaseTime > DateTime.Now)
        {
            throw new ApplicationException("BaseTime error.");
        }
  2. 当前版本重写
    • 需要将 ISnowWorker、DefaultIdGenerator、SnowWorkerM1、SnowWorkerM2、SnowWorkerM3 等接口、类重写一份。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions