hdong:fix some bug for register again when fail.

This commit is contained in:
YouWeiDH 2024-10-12 10:25:17 +08:00
parent 878618c926
commit 7e923d16c2

View file

@ -54,7 +54,14 @@ public class UserService : IUserService
if (string.IsNullOrEmpty(user.Id)) if (string.IsNullOrEmpty(user.Id))
{ {
user.Id = Guid.NewGuid().ToString(); if (hasRegisterId != null)
{
user.Id = hasRegisterId;
}
else
{
user.Id = Guid.NewGuid().ToString();
}
} }
record = user; record = user;