using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; using System.Threading.Tasks; using UnityEngine; //1.7查询工会详情 public class UnionDetail17 : MonoBehaviour { // UnionDetail unionDetail = new UnionDetail(); public async Task queryUnionDetail(int orderByDesc) // 1.7 { // 准备请求的头部信息,包含授权令牌 Dictionary head17 = new Dictionary { { "Authorization", Global.global.serverResponse.data.token } }; // 异步发送请求 string response17 = await web.SendRequest(web.URL + "/snail/union/queryInfo?unionId=1", "GET","{}", head17); // 调试输出接收到的响应 Debug.Log("1.7查询工会详情========================================" + response17); // 将响应反序列化为对象 UnionDetalResponse unionDetailResponse = JsonConvert.DeserializeObject(response17); Debug.Log("8==================================D"+ unionDetailResponse.Data.BizUnionUserModelList[0].CreateTime); return unionDetailResponse; } }