update domain checks for InternalApi baseUrl and improve error details in RoleApplication
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user