| | |
| | | using Newtonsoft.Json; |
| | | using LB_SmartVisionCommon; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Serialization; |
| | | using System.Collections.Concurrent; |
| | | using System.Diagnostics; |
| | |
| | | |
| | | if (!fullPath.Contains(".json")) |
| | | { |
| | | Debug.WriteLine("æä»¶è·¯å¾ä¸å®æ´"); |
| | | AsyncLogHelper.Info("æä»¶è·¯å¾ä¸å®æ´"); |
| | | return false; |
| | | } |
| | | if (string.IsNullOrEmpty(fullPath) || fullPath.Trim() == "") |
| | | { |
| | | Debug.WriteLine("æä»¶è·¯å¾ä¸å®æ´"); |
| | | AsyncLogHelper.Info("æä»¶è·¯å¾ä¸å®æ´"); |
| | | return false; |
| | | } |
| | | |
| | |
| | | |
| | | if (!File.Exists(fullPath)) |
| | | { |
| | | Debug.WriteLine("æä»¶ä¸åå¨å建空æä»¶"); |
| | | AsyncLogHelper.Info("æä»¶ä¸åå¨å建空æä»¶"); |
| | | Save(directoryPath); |
| | | return true; |
| | | } |
| | |
| | | { |
| | | if (string.IsNullOrEmpty(filePath) || filePath.Trim() == "") |
| | | { |
| | | Debug.WriteLine("æä»¶è·¯å¾ä¸å®æ´"); |
| | | AsyncLogHelper.Info("æä»¶è·¯å¾ä¸å®æ´"); |
| | | return false; |
| | | } |
| | | |