新增添加医生

This commit is contained in:
2023-07-11 09:17:21 +08:00
parent fa96649a43
commit 1e5a26b329
10 changed files with 521 additions and 67 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "regexp"
// RegexpMobile 手机号匹配
func RegexpMobile(mobile string) bool {
ok, err := regexp.MatchString(`^1[3-9][0-9]{9}$`, mobile)
ok, err := regexp.MatchString(`^1(3\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$`, mobile)
if err != nil {
return false
}