From 5428935270159bfc42c2934ed7fb1091554fc9a4 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 09 七月 2020 17:12:42 +0800 Subject: [PATCH] 修改了 sokect --- ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs index 66bb4c1..2e36d6f 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Suggestion/FeedbackForm.cs @@ -242,13 +242,7 @@ this.UploadSuggestion(txtInput.Text, txtEmail.Text); }; - - var strFile = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Common.Config.Instance.Guid, DirNameResourse.SuggestionFile); - if (System.IO.File.Exists(strFile) == false) - { - return; - } - var data = UserCenterLogic.LoadFileContent(strFile); + var data = HdlFileLogic.Current.ReadFileTextContent(DirNameResourse.SuggestionFile); if (data != null) { var strNowData = DateTime.Now.ToString("yyyyMMdd"); @@ -292,10 +286,8 @@ { //淇濆瓨娆℃暟 this.suggestionCount--; - var strFile = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Common.Config.Instance.Guid, DirNameResourse.SuggestionFile); - var byteData = System.Text.Encoding.UTF8.GetBytes(this.suggestionCount + DateTime.Now.ToString("yyyyMMdd")); //鍐欏叆鍐呭 - Shared.IO.FileUtils.WriteFileByBytes(strFile, byteData); + HdlFileLogic.Current.SaveTextToFile(DirNameResourse.SuggestionFile, this.suggestionCount + DateTime.Now.ToString("yyyyMMdd")); HdlThreadLogic.Current.RunMain(() => { -- Gitblit v1.8.0