Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化身份证号校验码的逻辑 #19

Open
huangjj27 opened this issue Feb 8, 2022 · 0 comments
Open

优化身份证号校验码的逻辑 #19

huangjj27 opened this issue Feb 8, 2022 · 0 comments
Milestone

Comments

@huangjj27
Copy link
Owner

目前身份号码的校验码不会存入到结构体中,因此每次需要获取校验码时需要重复计算。可以优化为,从地址码、日期码、顺序码中计算校验码时存储中间信息。

@huangjj27 huangjj27 added this to the 0.2 milestone Feb 8, 2022
huangjj27 added a commit that referenced this issue Mar 6, 2022
根据 #19 的描述,对外部统一接口获取校验码利用中间存储的信息来快速提供校验码。原本的逻辑封装成性能开销较大的校验函数
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant