update domain checks for InternalApi baseUrl and improve error details in RoleApplication

This commit is contained in:
2025-11-27 12:16:55 +03:30
parent 9d0bb7df0e
commit 3526fdbf2f
2 changed files with 4 additions and 3 deletions

View File

@@ -57,7 +57,8 @@ public class RoleApplication : IRoleApplication
if (!response.Success)
{
_unitOfWork.RollbackAccountContext();
return operation.Failed("ارتباط با اپلیکیش پروگرام منیجر برقرار نشد");
return operation.Failed("ارتباط با اپلیکیش پروگرام منیجر برقرار نشد"+response.Result.errorMessage +response.Result.ErrorType + response.Error);
}
if (!response.Result.isSuccess)

View File

@@ -357,11 +357,11 @@ if (host.Contains("localhost"))
{
baseUrl = builder.Configuration["InternalApi:Local"];
}
else if (host.Contains("dadmehrg.ir"))
else if (host.Contains("dadmehrg"))
{
baseUrl = builder.Configuration["InternalApi:Dadmehrg"];
}
else if (host.Contains("gozareshgir.ir"))
else if (host.Contains("gozareshgir"))
{
baseUrl = builder.Configuration["InternalApi:Gozareshgir"];
}