| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |
| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |
| | |
| | | } |
| | | |
| | | JsonEquipmentData data = await FindDevicePropCalc(Url, token, jsonEquipment.data[i].deviceNo, TimeDate, time); |
| | | |
| | | await Task.Delay(200); |
| | | |
| | | for (int j = 0; j < data.data.Count; j++) |
| | | { |
| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |