fix: Compatible with new data
This commit is contained in:
parent
79d053daa7
commit
cee71b1add
|
|
@ -18,6 +18,10 @@ public partial class MongoRepository
|
|||
{
|
||||
phoneSecond = $"+86{phone}";
|
||||
}
|
||||
else
|
||||
{
|
||||
phoneSecond = phone.Replace("+86", "");
|
||||
}
|
||||
var user = _dc.Users.AsQueryable().FirstOrDefault(x => (x.Phone == phone || x.Phone == phoneSecond) && x.Type != UserType.Affiliate);
|
||||
return user != null ? user.ToUser() : null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue