| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | /// <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) |