fix: add regionCode for ModifyUserPhone API
This commit is contained in:
parent
480d6d8ed8
commit
ff51e81b6d
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue