Rename Upgrade -> UpgradeId

This commit is contained in:
guanguans 2021-01-12 11:52:18 +08:00
parent 3e655b9b53
commit cc633b5a6b
2 changed files with 19 additions and 1 deletions

18
.gitignore vendored
View File

@ -1,3 +1,21 @@
# Created by .ignore support plugin (hsz.mobi)
### Go template
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
.idea/ .idea/
.DS_Store .DS_Store
.history/ .history/

View File

@ -122,7 +122,7 @@ func FakeRequireId(isEighteen bool, address string, birthday string, sex int) st
} }
// 15位升级18位号码 // 15位升级18位号码
func Upgrade(id string) (string, error) { func UpgradeId(id string) (string, error) {
if !IsValid(id) { if !IsValid(id) {
return "", errors.New("Not Valid ID card number.") return "", errors.New("Not Valid ID card number.")
} }