From ff3cfcf62632bf43e51a6b6098c203bf0f5cddbc Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期二, 24 十二月 2019 19:53:29 +0800 Subject: [PATCH] 2019.12.24 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs | 32 ++++++++++++++++++++++---------- 1 files changed, 22 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs index cb25261..7197147 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/MessageManagementForm.cs @@ -66,7 +66,7 @@ var dicData = await this.GetMessageData(); //鍏抽棴杩涘害鏉� this.CloseProgressBar(dicData == null && showReload == true ? ShowReLoadMode.YES : ShowReLoadMode.NO); - + HdlThreadLogic.Current.RunMain(() => { //鍏抽棴鍒锋柊鐗规晥 @@ -188,7 +188,7 @@ var rowControl = new RowLayoutControl(frameList.rowSpace / 2); frameList.AddChidren(rowControl); rowControl.Name = frameList.ChildrenCount.ToString(); - rowControl.MainKeys = recordInfo.RegId; + rowControl.MainKeys = recordInfo.Id; this.dicAllRow[frameList.Name + "-" + rowControl.Name] = rowControl; //鍥炬爣(鐜板湪娴嬭瘯) @@ -240,7 +240,7 @@ string msg = Language.StringByID(R.MyInternationalizationString.uDeleteMessageMsg); this.ShowMassage(ShowMsgType.Confirm, msg, async () => { - await this.DeleteMsg(recordInfo.RegId, frameList, rowControl); + await this.DeleteMsg(recordInfo.Id, frameList, rowControl); }); }; @@ -261,7 +261,7 @@ if (sender != null) { //鏍囪宸茶(涓嶇瀹冩垚鍔熶笉鎴愬姛) - await this.SetTickIsRead(recordInfo.RegId); + await this.SetTickIsRead(recordInfo.Id); } }; } @@ -276,8 +276,14 @@ /// <param name="strId"></param> private async System.Threading.Tasks.Task<bool> SetTickIsRead(string strId) { - var pra = new { Id = strId }; - await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/TickIsRead", true, pra); + string strUrl = "ZigbeeUsers/TickIsRead?Id=" + strId; + + var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET"); + if (result == null) + { + return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/TickIsRead", null, null); + } + //浜戠鏄笉浼氳繑鍥炰笢瑗跨殑 return true; } @@ -335,9 +341,15 @@ /// <param name="rowContr"></param> private async System.Threading.Tasks.Task<bool> DeleteMsg(string strId, FrameListControl frameList, RowLayoutControl rowContr) { - var pra = new { Id = strId }; - var result = await UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/DeletePushMessage", true, pra); - if (result == true && frameList != null) + string strUrl = "ZigbeeUsers/DeletePushMessage?Id=" + strId; + + var result = await Common.CommonPage.Instance.RequestHttpsZigbeeBytesResultAsync(strUrl, null, "GET"); + if (result == null) + { + return UserCenterLogic.CheckNotEorrorMsg(null, "ZigbeeUsers/DeletePushMessage", null, null); + } + //浜戠鏄笉浼氳繑鍥炰笢瑗跨殑 + if (frameList != null) { HdlThreadLogic.Current.RunMain(() => { @@ -347,7 +359,7 @@ this.AdjustControlLocation(frameList, rowContr); }); } - return result; + return true; } /// <summary> -- Gitblit v1.8.0