fix issue #950
This commit is contained in:
parent
43fb8a3b61
commit
92b1c01efc
1 changed files with 7 additions and 0 deletions
|
|
@ -596,6 +596,13 @@ namespace BMA.EHR.Retirement.Service.Controllers
|
|||
|
||||
var baseAPIOrg = _configuration["API"];
|
||||
var apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-leave";
|
||||
if (data.Count > 0)
|
||||
{
|
||||
if (data[0].profileType == "EMPLOYEE")
|
||||
{
|
||||
apiUrlOrg = $"{baseAPIOrg}/org/command/excexute/salary-employee-leave";
|
||||
}
|
||||
}
|
||||
using (var client = new HttpClient())
|
||||
{
|
||||
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token.Replace("Bearer ", ""));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue