zhaoyang 3 years ago
parent
commit
3d00cd0e93

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Data/MailDataManager.cs

@@ -7,7 +7,7 @@ namespace GFGGame
 {
     public class MailInfo
     {
-        public int mailId;//邮件id
+        public long mailId;//邮件id
         public string title;//邮件标题
         public long timeSec;//邮件时间戳,单位秒
         public string content = "";//邮件内容
@@ -48,7 +48,7 @@ namespace GFGGame
             mailInfos.Clear();
             mailInfos = list;
         }
-        public void UpdateMailContent(int mailId, int state, string content = "", List<ItemData> rewards = null)
+        public void UpdateMailContent(long mailId, int state, string content = "", List<ItemData> rewards = null)
         {
             for (int i = 0; i < mailInfos.Count; i++)
             {
@@ -67,7 +67,7 @@ namespace GFGGame
         /// </summary>
         /// <param name="mailId"></param>
         /// <returns></returns>
-        public MailInfo GetMailInfoById(int mailId)
+        public MailInfo GetMailInfoById(long mailId)
         {
             for (int i = 0; i < mailInfos.Count; i++)
             {

+ 3 - 3
GameClient/Assets/Game/HotUpdate/ServerProxy/MailSProxy.cs

@@ -64,7 +64,7 @@ namespace GFGGame
             return false;
         }
 
-        public static async ETTask<bool> ReqMailContent(int mailId)
+        public static async ETTask<bool> ReqMailContent(long mailId)
         {
             Mail2C_GetMailData response = null;
             response = (Mail2C_GetMailData)await MessageHelper.SendToServer(new C2Mail_GetMailData() { RoleId = mailId });
@@ -83,7 +83,7 @@ namespace GFGGame
             }
             return false;
         }
-        public static async ETTask<bool> ReqMailReward(int mailId)
+        public static async ETTask<bool> ReqMailReward(long mailId)
         {
             Mail2C_GetMailItems response = null;
             response = (Mail2C_GetMailItems)await MessageHelper.SendToServer(new C2Mail_GetMailItems() { MailId = mailId });
@@ -101,7 +101,7 @@ namespace GFGGame
             }
             return false;
         }
-        public static async ETTask<bool> ReqDeleteMail(int mailId)
+        public static async ETTask<bool> ReqDeleteMail(long mailId)
         {
             Mail2C_DeleteMail response = null;
             response = (Mail2C_DeleteMail)await MessageHelper.SendToServer(new C2Mail_DeleteMail() { MailId = mailId });