Browse Source

修改

Lishi
xxe 2 years ago
parent
commit
6b3ebbcd73
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      HKLib/Interfaces/HKLibHelper.cs

+ 5
- 5
HKLib/Interfaces/HKLibHelper.cs View File

@@ -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


Loading…
Cancel
Save