From d53e6af2c5f17838fa79659614b15a2a1f383399 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 31 三月 2023 10:04:58 +0800 Subject: [PATCH] 1 --- Crabtree/SmartHome/HDL/Common/HttpUtil/HttpServerRequest.cs | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpServerRequest.cs b/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpServerRequest.cs index 0d8a1da..4735acc 100644 --- a/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpServerRequest.cs +++ b/Crabtree/SmartHome/HDL/Common/HttpUtil/HttpServerRequest.cs @@ -1024,6 +1024,21 @@ } #endregion + /// <summary> + /// 鐢宠璁惧瀵嗛挜 + /// </summary> + /// <param name="mac"></param> + /// <returns></returns> + public ResponsePackNew ApplyDeviceSecret (string mac) + { + Dictionary<string, object> d = new Dictionary<string, object> (); + d.Add ("supplier", "HDL"); + d.Add ("mac", mac); + d.Add ("spk", "BUSUDPGATEWAY"); + var requestJson = HttpUtil.GetSignRequestJson (d); + return HttpUtil.RequestHttpsPostFroHome (NewAPI.Api_Post_ApplyDeviceSecret, requestJson); + } + //#region Kaede --璁惧鍔熻兘鈥斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�斺�� ///// <summary> ///// 鑾峰彇璁惧鍒楄〃 -- Gitblit v1.8.0