xxe 2 lat temu
rodzic
commit
6b3ebbcd73
1 zmienionych plików z 5 dodań i 5 usunięć
  1. +5
    -5
      HKLib/Interfaces/HKLibHelper.cs

+ 5
- 5
HKLib/Interfaces/HKLibHelper.cs Wyświetl plik

@@ -78,14 +78,14 @@ namespace HKLib.Interfaces

public static List<OrgDto> GetOrg()
{
var data = IHttpMultiClient.HttpMulti

.AddNode(t =>
var data = IHttpMultiClient.HttpMulti.AddNode(t =>
{
t.NodePath = $"{Configer.SaasRoute}api/one-card/member-tag-list";
t.ReqType = MultiType.GET;
}).Build().RunStringFirst().ToModel<JObject>()["data"]["data"].ToJson().ToModel<List<OrgOutDto>>();
return data.Where(t => !t.Name.IsNullOrEmpty()).Select(t => new OrgDto
}).Build().RunStringFirst();
if (data.IsNullOrEmpty()) return new List<OrgDto>();
var model =data.ToModel<JObject>()["data"]["data"].ToJson().ToModel<List<OrgOutDto>>();
return model.Where(t => !t.Name.IsNullOrEmpty()).Select(t => new OrgDto
{
Name = t.Name,
SId = t.Id


Ładowanie…
Anuluj
Zapisz