hdong:fix some bug for register again when fail.
This commit is contained in:
parent
878618c926
commit
7e923d16c2
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue