| 
					
				 | 
			
			
				@@ -7,9 +7,23 @@ namespace ET 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class NoticeSystemNoticeChanged : AMHandler<M2C_SystemNoticeChanged> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        protected override async ETTask Run(Session session, M2C_SystemNoticeChanged message) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override async ETTask Run(Session session, M2C_SystemNoticeChanged response) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            NoticeDataManager.Instance.UpdateSystemNoticeChanged(message.NoticeId, message.Remove); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            NoticeInfo noticeInfo = new NoticeInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            noticeInfo.noticeId = response.Notice.NoticeId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            noticeInfo.title = response.Notice.Title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            noticeInfo.time = response.Notice.TimeSec; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            noticeInfo.readStatus = response.Notice.ReadStatus; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            NoticeDataManager.Instance.UpdateNoticeIdList(noticeInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            await ETTask.CompletedTask; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public class NoticeSystemNoticeRemove : AMHandler<M2C_SystemNoticeRemoved> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        protected override async ETTask Run(Session session, M2C_SystemNoticeRemoved response) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            NoticeDataManager.Instance.UpdateSystemNoticeRemove(response.NoticeId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             await ETTask.CompletedTask; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -26,8 +40,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Session session = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                session = GameGlobal.zoneScene.GetComponent<NetKcpComponent>().Create(NetworkHelper.ToIPEndPoint(GameGlobal.noticeAddress)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                response = (N2C_GetSystemNoticeList)await session.Call(new C2N_GetSystemNoticeList() { }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AccountInfoComponent accountInfoComponent = GameGlobal.zoneScene.GetComponent<AccountInfoComponent>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                session = GameGlobal.zoneScene.GetComponent<NetKcpComponent>().Create(NetworkHelper.ToIPEndPoint(accountInfoComponent.NoticeAddress)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                response = (N2C_GetSystemNoticeList)await session.Call(new C2N_GetSystemNoticeList() { AccountId = (int)accountInfoComponent.AccountId }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             catch (Exception e) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,13 +57,15 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<NoticeInfo> noticeInfos = new List<NoticeInfo>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            for (int i = 0; i < response.NoticeIdList.Count; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (int i = 0; i < response.NoticeList.Count; i++) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 NoticeInfo noticeInfo = new NoticeInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                noticeInfos.Add(noticeInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                noticeInfo.noticeId = response.NoticeList[i].NoticeId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                noticeInfo.title = response.NoticeList[i].Title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                noticeInfo.time = response.NoticeList[i].TimeSec; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                NoticeDataManager.Instance.UpdateNoticeIdList(noticeInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // NoticeDataManager.Instance.UpdateNoticeIdList(noticeInfos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public static async ETTask<bool> ReqSystemNotice(int noticeId) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -57,7 +74,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Session session = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                session = GameGlobal.zoneScene.GetComponent<NetKcpComponent>().Create(NetworkHelper.ToIPEndPoint(GameGlobal.noticeAddress)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                AccountInfoComponent accountInfoComponent = GameGlobal.zoneScene.GetComponent<AccountInfoComponent>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                session = GameGlobal.zoneScene.GetComponent<NetKcpComponent>().Create(NetworkHelper.ToIPEndPoint(accountInfoComponent.NoticeAddress)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 response = (N2C_GetSystemNotice)await session.Call(new C2N_GetSystemNotice() { NoticeId = noticeId }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             catch (Exception e) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -73,10 +92,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            NoticeDataManager.Instance.noticeInfo.noticeId = response.NoticeId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            NoticeDataManager.Instance.noticeInfo.title = response.Title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            NoticeDataManager.Instance.noticeInfo.time = response.TimeSec; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            NoticeDataManager.Instance.noticeInfo.context = response.Content; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            NoticeDataManager.Instance.UpdateNoticeContent(response.NoticeId, response.Content); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |