| | |
| | | UserView.HomePage.Instance.RemoveViewByTag("Logic");//移除所有标记Logic界面 |
| | | 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") |
| | | { |
| | | |
| | | //开启GPS服务 |
| | | Application.StartGPSLocationService(); |
| | | //保存GPS服务开启状态 |
| | | Send.SaveLocalFile("GPS_File", "1"); |
| | | } |
| | | } |
| | | //只刷新分类-自动化上下滑动view; |
| | | Phone.Category.CategoryMainForm.instance?.RefreshBodyView(); |
| | | // Category.Category.instance?.RefreshBodyView(); |