แก้ออกคำสั่ง
This commit is contained in:
parent
426d064476
commit
5a208ebb17
1 changed files with 4 additions and 3 deletions
|
|
@ -371,9 +371,10 @@ namespace BMA.EHR.Application.Repositories
|
||||||
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey);
|
var apiResult = GetExternalAPIAsync(apiPath, accessToken ?? "", apiKey);
|
||||||
if (apiResult.Result != null)
|
if (apiResult.Result != null)
|
||||||
{
|
{
|
||||||
var raw = JsonConvert.DeserializeObject<GetUserOCIdResultDto>(apiResult.Result);
|
var raw = JsonConvert.DeserializeObject<GetUserOCIdDto>(apiResult.Result);
|
||||||
if (raw != null)
|
if (raw == null || raw.RootId == null)
|
||||||
return raw.Result!.RootId;
|
return Guid.Empty;
|
||||||
|
return raw.RootId;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Guid.Empty;
|
return Guid.Empty;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue