|
@@ -43,6 +43,9 @@ func CheckCreateUserAccount(name string) (accountId int, err error) {
|
|
|
if name == "" {
|
|
|
return 0, errors.New("名字不能为空")
|
|
|
}
|
|
|
+ if len([]rune(name)) == 11 {
|
|
|
+ return 0, errors.New("请确认获取名字是否正确")
|
|
|
+ }
|
|
|
res := KbDb.FindOne("users", map[string]interface{}{"name": name}, "id", "id DESC")
|
|
|
if res != nil && len(*res) > 0 {
|
|
|
accountId = common.IntAll((*res)["id"])
|