using Newtonsoft.Json; namespace Application.Web; public class AutoLogin { public async Task TwLogin(string code) { using HttpClient client = new HttpClient(); // 发送 GET 请求 string url = $"https://m.twbar.cn/api/AppAuto/GetOpenInfo?code={code}"; string responseText = await client.GetStringAsync(url); return JsonConvert.DeserializeObject(responseText); } } public class TwResult { public string msg { get; set; } = ""; public int code { get; set; } public object data { get; set; } }