fix: add regionCode for ModifyUserPhone API

This commit is contained in:
AnonymousDotNet 2024-12-06 17:59:08 +08:00
parent 480d6d8ed8
commit ff51e81b6d

View file

@ -696,7 +696,7 @@ public class UserService : IUserService
var curUser = await GetMyProfile();
var db = _services.GetRequiredService<IBotSharpRepository>();
var record = db.GetUserById(curUser.Id);
var existPhone = db.GetUserByPhone(phone);
var existPhone = db.GetUserByPhone(phone, regionCode: regionCode);
if (record == null || (existPhone != null && existPhone.RegionCode == regionCode))
{