| | |
| | | // 准备要发送的表单数据 |
| | | 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); |
| | |
| | | staus = "告警"; |
| | | break; |
| | | } |
| | | if (jsonEquipment.data.Count > 0) |
| | | if (jsonEquipment == null || jsonEquipment.data == null) |
| | | { |
| | | JsonData += "{\"HDate\":\"" + time + "\",\"HTechParamName\":\"开关机状态\",\"HResult\":\"" + staus + "\",\"HCount\":0,\"HSourceCode\":\"" + EquipmentStaus.data[i].no + "\"},"; |
| | | } |
| | | else if (jsonEquipment.data.Count > 0) |
| | | { |
| | | JsonData += "{\"HDate\":\"" + time + "\",\"HTechParamName\":\"开关机状态\",\"HResult\":\"" + staus + "\",\"HCount\":1,\"HSourceCode\":\"" + EquipmentStaus.data[i].no + "\"},"; |
| | | } |
| | |
| | | // 准备要发送的表单数据 |
| | | 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); |