| | |
| | | /// <param name="methodType">请求方法.</param> |
| | | /// <param name="dataStringJson">请求的参数.</param> |
| | | /// <param name="needHeaders">是否需要包头.</param> |
| | | public static ResponsePack RequestHttps (string methodType, string dataStringJson, bool needHeaders = true, bool needTip = true) |
| | | public static ResponsePack RequestHttps (string methodType, string dataStringJson, bool needHeaders = true, bool needTip = true,string urlHead = "") |
| | | { |
| | | ResponsePack revertObj = null; |
| | | try { |
| | |
| | | |
| | | |
| | | #region |
| | | string urlHead = $"{"https://homeautomation.havells.com"}/WebApi/"; |
| | | urlHead = $"{"https://homeautomation.havells.com"}/WebApi/"; |
| | | urlHead = "https://developer.hdlcontrol.com/api/"; |
| | | string url = urlHead + methodType; |
| | | |
| | | var webClient = new WebClient (); |