Skip to content

Commit 117cbd7

Browse files
fix: add regionCode for GetUserByPhone API
1 parent ff51e81 commit 117cbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ record = db.GetUserByUserName(user.UserName);
6262

6363
if (!string.IsNullOrWhiteSpace(user.Phone))
6464
{
65-
record = db.GetUserByPhone(user.Phone);
65+
record = db.GetUserByPhone(user.Phone, regionCode: (string.IsNullOrWhiteSpace(user.RegionCode) ? "CN" : user.RegionCode));
6666
}
6767

6868
if (record == null && !string.IsNullOrWhiteSpace(user.Email))

0 commit comments

Comments
 (0)