re
This commit is contained in:
@@ -229,8 +229,8 @@ func CreateUser(user *model.User, creatorName string) (err error) {
|
||||
popCode := ""
|
||||
for {
|
||||
popCode = jxutils.GenRandomString(6)
|
||||
user, _ := dao.GetUserByID(dao.GetDB(), "pop_code", popCode)
|
||||
if user == nil {
|
||||
user2, _ := dao.GetUserByID(dao.GetDB(), "pop_code", popCode)
|
||||
if user2 == nil {
|
||||
user.PopCode = popCode
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user