by Robin at 20231226; username

This commit is contained in:
Leufolium 2023-12-26 15:20:08 +08:00
parent 837f12c614
commit 915371e6ad
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func (s *Service) utilRegisterUser(ctx *gin.Context, req *loginproto.MobilePhone
return return
} }
account.UserId = goproto.Int64(userIdSeq.UserId) account.UserId = goproto.Int64(userIdSeq.UserId)
account.Name = goproto.String(fmt.Sprintf("user_%v", userIdSeq.UserId)) account.Name = goproto.String(fmt.Sprintf("用户%v", userIdSeq.UserId))
account.MobilePhone = goproto.String(req.MobilePhone) account.MobilePhone = goproto.String(req.MobilePhone)
account.RegionCode = goproto.String(req.RegionCode) account.RegionCode = goproto.String(req.RegionCode)
account.PhoneHash = goproto.String(req.PhoneHash) account.PhoneHash = goproto.String(req.PhoneHash)