wxr
2022-07-19 bb4bcd1b320502b36d19aacec52ed886a975249a
HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs
@@ -3,6 +3,7 @@
using System.IO;
using System.Net;
using HDL_ON.DAL.Server;
using HDL_ON.Entity;
using HDL_ON.UI.UI2.PersonalCenter.PirDevice;
using Newtonsoft.Json.Linq;
using Shared;
@@ -82,6 +83,22 @@
        }
        /// <summary>
        /// 获取门禁二维码(自研)
        /// </summary>
        /// <returns></returns>
        public static ResponsePackNew GetQRcode()
        {
            var jobject = new JObject();
            jobject.Add("userId", UserInfo.Current.ID);
            jobject.Add("userType", "C");
            jobject.Add("houseId", DB_ResidenceData.Instance.CurrentRegion.id);
            jobject.Add("codeSecond", "60");
            var requestJson = HttpUtil.GetSignRequestJson(jobject);//数据签名
            var revertObj = HttpUtil.RequestHttpsPostFroHome(NewAPI.API_POST_OwnerQRCode, requestJson);
            return revertObj;
        }
        /// <summary>
        /// 上报动态开锁密码(注意:密码有可能延时1分钟生效)
        /// </summary>
        public static void GetQRcode(FrameLayout frame, Video video, Action<bool, string> action)