fix: add regionCode for GetUserByPhone API

This commit is contained in:
AnonymousDotNet 2024-12-06 18:21:34 +08:00
parent ff51e81b6d
commit 117cbd7865

View file

@ -62,7 +62,7 @@ public class UserService : IUserService
if (!string.IsNullOrWhiteSpace(user.Phone))
{
record = db.GetUserByPhone(user.Phone);
record = db.GetUserByPhone(user.Phone, regionCode: (string.IsNullOrWhiteSpace(user.RegionCode) ? "CN" : user.RegionCode));
}
if (record == null && !string.IsNullOrWhiteSpace(user.Email))