Merge pull request #12 from AnonymousDotNet/lida_dev
fix: phone is empty judgment
This commit is contained in:
commit
a09d47a95f
|
|
@ -58,7 +58,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