fix: phone is empty judgment
This commit is contained in:
parent
bad946b073
commit
1ff151d036
|
|
@ -56,7 +56,7 @@ public class UserService : IUserService
|
|||
|
||||
record = user;
|
||||
record.Email = user.Email?.ToLower();
|
||||
if (user.Phone != null)
|
||||
if (!string.IsNullOrWhiteSpace(user.Phone))
|
||||
{
|
||||
record.Phone = "+" + Regex.Match(user.Phone, @"\d+").Value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue