From 493d35bf9672271ab9417cfb5a0bde9b4d3b9e66 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 25 十二月 2019 17:57:23 +0800 Subject: [PATCH] 2019-12-25 1.增加MQTT。 --- Crabtree/SmartHome/UI/SimpleControl/MainPage.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs index f4fd122..24c4766 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/MainPage.cs @@ -163,7 +163,7 @@ /// <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 { @@ -190,7 +190,8 @@ #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 (); -- Gitblit v1.8.0