Rename Upgrade
-> UpgradeId
This commit is contained in:
parent
3e655b9b53
commit
cc633b5a6b
18
.gitignore
vendored
18
.gitignore
vendored
@ -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/
|
||||||
|
@ -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.")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user