From cda2410f9c29f2fadc16e9de38ccae95b75a89dd Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 09 六月 2021 10:51:13 +0800 Subject: [PATCH] 1 --- HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs | 41 +++++++++++++++++++++++++++-------------- 1 files changed, 27 insertions(+), 14 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs index 6ebce59..5a8a945 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs @@ -12,8 +12,6 @@ public class VideoSend { - - /// <summary> /// 妫�鏌ヤ綇瀹呮槸鍚︾粦瀹氫赴鏋楋紝骞惰幏鍙栭棬鍙f満鍒楄〃 /// </summary> @@ -24,23 +22,22 @@ var responsePackNew = RequestServerhomeId(jObject, NewAPI.API_POST_FL_Check); return responsePackNew; } - /// <summary> /// 鑾峰彇閫氳瘽璁板綍 /// </summary> /// <returns></returns> public static ResponsePackNew GetCall(string flBindId) { - var jObject = new JObject { { "homeId", PirSend.HomeId }, { "flBindId", flBindId }, { "pageSize", 100 } }; + var jObject = new JObject { { "homeId", PirSend.HomeId }, { "flBindId", flBindId }, { "pageSize", int.MaxValue } }; var responsePackNew = RequestServerhomeId(jObject, NewAPI.API_POST_FL_GetCallList); return responsePackNew; } /// <summary> /// 鑾峰彇闂ㄥ彛鏈哄垪琛�(1瀹ゅ唴鏈�,2瀹ゅ鏈猴紝3鍥村鏈猴紝4绠$悊鏈�,5浜屾纭鏈�) /// </summary> - public static List<VideoMethod.FlVideo> GetVideoInfoList(VideoMethod.VideoClouds video) + public static List<FlVideo> GetVideoInfoList(VideoClouds video) { - List<VideoMethod.FlVideo> eSVideoInfosList = new List<VideoMethod.FlVideo>(); + List<FlVideo> eSVideoInfosList = new List<FlVideo>(); var jobject = new JObject(); jobject.Add("cmtID", video.flCmtId); jobject.Add("unitno", video.flBuildingId); @@ -61,7 +58,7 @@ { return eSVideoInfosList; } - eSVideoInfosList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<VideoMethod.FlVideo>>(json["list"].ToString()); + eSVideoInfosList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<FlVideo>>(json["list"].ToString()); } catch { } @@ -70,12 +67,12 @@ /// <summary> /// 涓婃姤鍔ㄦ�佸紑閿佸瘑鐮�(娉ㄦ剰锛氬瘑鐮佹湁鍙兘寤舵椂1鍒嗛挓鐢熸晥) /// </summary> - public static void GetQRcode(FrameLayout frame, VideoMethod.VideoClouds video, Action<bool, string> action) + public static void GetQRcode(FrameLayout frame, VideoClouds video, Action<bool, string> action) { ///鏍囪鏄惁鎴愬姛 bool if_bool = false; //涓存椂瀵嗙爜 - string pwd = VideoMethod.getCode(); + string pwd = VideoMethod.GetCode(); var jobject = new JObject(); jobject.Add("communityID", video.flCmtId);//绀惧尯ID jobject.Add("fromTime", VideoMethod.GetCurrentTimeStamp());//寮�濮嬫椂闂� jobject.Add("validTime", VideoMethod.GetTomorrowTimeStamp());//鏈夋晥鏃堕棿 @@ -93,13 +90,29 @@ var str = HttpWebRequest(NewAPI.API_POST_FL_QRcode, jobject.ToString(), "POST"); if (!string.IsNullOrEmpty(str)) { - var json = JObject.Parse(str); - if (json != null) + if (str.Contains("status")) { - var stateCode = json["status"].ToString(); - if (stateCode == "0") + //var json = JObject.Parse(str); + //if (json != null) + //{ + // var stateCode = json["status"].ToString(); + // if (stateCode == "0") + // { + // if_bool = true; + // } + //} + if_bool = true; + } + else { + var json = JObject.Parse(str); + if (json != null) { - if_bool = true; + var stateCode = json["desc"].ToString(); + Application.RunOnMainThread(() => + { + //閿欒鎻愮ず + new Intelligence.Automation.LogicView.TipPopView().FlashingBox(stateCode); + }); } } } -- Gitblit v1.8.0