tuiguangm
This commit is contained in:
@@ -227,7 +227,7 @@ func CreateUser(user *model.User, creatorName string) (err error) {
|
||||
user.Status = model.UserStatusNormal
|
||||
// user.DividePercentage = 1
|
||||
//推广码
|
||||
user.PopCode = jxutils.GenValidateCode(6)
|
||||
user.PopCode = jxutils.GenRandomString(6)
|
||||
return dao.CreateEntity(nil, user)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user