| | |
| | | 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");
|
| | |
| | | /// <param name="email"></param>
|
| | | private void UploadSuggestion(string strContent, string email)
|
| | | {
|
| | | HdlThreadLogic.Current.RunThread(async() =>
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | var pra = new
|
| | | {
|
| | |
| | | OpinionFeedbackType = this.typeMode,
|
| | | Email = email
|
| | | };
|
| | | var result = await UserCenterLogic.GetResultStatuByRequestHttps("App/AddOpinionFeedback", false, pra);
|
| | | var result = UserCenterLogic.GetResultStatuByRequestHttps("App/AddOpinionFeedback", false, pra);
|
| | | if (result == true)
|
| | | {
|
| | | //保存次数
|
| | | 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(() =>
|
| | | {
|