From e13a9980ce617db1394a76944186c5d5bd595d5d Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 02 六月 2021 14:37:12 +0800
Subject: [PATCH] 5月需求bug修复

---
 HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs |   26 +++++++++++++++++++++-----
 1 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs
index d4ed6a6..5a8a945 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Video/VideoSend.cs
@@ -90,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