From 79d053daa74f4a998781e236f955d5ee57c61d82 Mon Sep 17 00:00:00 2001 From: AnonymousDotNet <18776095145@163.com> Date: Wed, 30 Oct 2024 18:42:23 +0800 Subject: [PATCH] fix: Support updating regionCode --- src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs b/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs index 3fbf92c7..674f60c5 100644 --- a/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs +++ b/src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs @@ -631,7 +631,7 @@ public class UserService : IUserService var record = db.GetUserById(curUser.Id); var existPhone = db.GetUserByPhone(phone); - if (record == null || existPhone != null) + if (record == null || (existPhone != null && existPhone.RegionCode == regionCode)) { return false; }