From c7f2e3791f931d18c6ab3b1b215e57a1101e0389 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 27 八月 2020 15:01:27 +0800
Subject: [PATCH] 2020-08-27-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/Method.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs b/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
index 81bac76..560bd30 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/Method.cs
@@ -901,6 +901,30 @@
             UserView.HomePage.Instance.RemoveViewByTag("Logic");//绉婚櫎鎵�鏈夋爣璁癓ogic鐣岄潰
             if (LogicView.IfString._Logic == if_logic)
             {
+                //鏌ヨ閫昏緫鏄惁娣诲姞鍦扮悊浣嶇疆浣滀负鏉′欢
+                var exist = Common.Logic.CurrentLogic.Conditions.Find((obj) => obj["Type"] == "7");
+                if (exist==null)
+                {
+                    //濡傛灉鎵句笉鍒板湴鐞嗕綅缃綔涓烘潯浠剁殑璇�,鍏抽棴GPS鏈嶅姟(鍑忓皯鑰楃數)
+                    if (Send.It_Exist == "1")
+                    {
+                        //鍏抽棴GPS鏈嶅姟
+                        Application.StopGPSLocationService();
+                        //淇濆瓨GPS鏈嶅姟鍏抽棴鐘舵��
+                        Send.SaveLocalFile("GPS_File", "0");
+                    }
+                }
+                else
+                {
+                    if (Send.It_Exist == "0")
+                    {
+                    
+                        //寮�鍚疓PS鏈嶅姟
+                        Application.StartGPSLocationService();
+                        //淇濆瓨GPS鏈嶅姟寮�鍚姸鎬�
+                        Send.SaveLocalFile("GPS_File", "1");
+                    }
+                }
                 //鍙埛鏂板垎绫�-鑷姩鍖栦笂涓嬫粦鍔╲iew锛�
                 Phone.Category.CategoryMainForm.instance?.RefreshBodyView();
                 // Category.Category.instance?.RefreshBodyView();

--
Gitblit v1.8.0