From 19b211e5a9a5ff9c844a96a5d5e0230ca3628b80 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 25 五月 2023 14:56:11 +0800
Subject: [PATCH] ios 短信自动填充

---
 HDL_ON/Common/ApiUtlis.cs |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index cf3249d..43eb413 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -320,17 +320,22 @@
                                 {
 
 #if __IOS__
-                                    List<VisitorTempPassword> dataList = new List<VisitorTempPassword>();
-                                    Dictionary<string, object> dictionary = new Dictionary<string, object>();
-                                    dictionary.Add("homeId", Entity.DB_ResidenceData.Instance.CurrentRegion.id);
-                                    var requestJson = HttpUtil.GetSignRequestJson(dictionary);
-                                    ResponsePackNew pack = HttpUtil.RequestHttpsPost(NewAPI.Api_Post_GetExtMemberInfo, requestJson);
-                                    if(pack!= null)
+                                    string systemVersion = UIKit.UIDevice.CurrentDevice.SystemVersion;
+                                    string errorVersion = "16.2.0";
+                                    if (systemVersion.CompareTo(errorVersion) < 0)
                                     {
-                                        var data = Newtonsoft.Json.JsonConvert.DeserializeObject<FreeviewMemberInfo>(pack.Data.ToString());
-                                        //鐧诲綍鍏ㄨ閫�
-                                        Shared.IOS.HDLFVSDK.Video.Init("", data.extUserId, DB_ResidenceData.Instance.CurrentRegion.id, "78FF1E4D-FC0A-4E71-9B79-0448E4460BD7", "T0001", "120.77.53.170:9700", "120.77.53.170:21664");
+                                        List<VisitorTempPassword> dataList = new List<VisitorTempPassword>();
+                                        Dictionary<string, object> dictionary = new Dictionary<string, object>();
+                                        dictionary.Add("homeId", Entity.DB_ResidenceData.Instance.CurrentRegion.id);
+                                        var requestJson = HttpUtil.GetSignRequestJson(dictionary);
+                                        ResponsePackNew pack = HttpUtil.RequestHttpsPost(NewAPI.Api_Post_GetExtMemberInfo, requestJson);
+                                        if (pack != null)
+                                        {
+                                            var data = JsonConvert.DeserializeObject<FreeviewMemberInfo>(pack.Data.ToString());
+                                            //鐧诲綍鍏ㄨ閫�
+                                            Shared.IOS.HDLFVSDK.Video.Init("", data.extUserId, DB_ResidenceData.Instance.CurrentRegion.id, "78FF1E4D-FC0A-4E71-9B79-0448E4460BD7", "T0001", "120.77.53.170:9700", "120.77.53.170:21664");
 
+                                        }
                                     }
 #endif
                                 }

--
Gitblit v1.8.0