From 664676127c0e8b4bb3630e2928bd26078bd901ec Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 27 Apr 2024 10:10:46 +0800 Subject: [PATCH] 1 --- server/mailserver/mail/mailmgr.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/server/mailserver/mail/mailmgr.go b/server/mailserver/mail/mailmgr.go index c7c3a5b5..c59a782a 100644 --- a/server/mailserver/mail/mailmgr.go +++ b/server/mailserver/mail/mailmgr.go @@ -121,7 +121,7 @@ func (this *mailMgr) CaGetMailList(c *gin.Context) { } func (this *mailMgr) CaMarkMail(c *gin.Context) { - /* + hum := c.MustGet("hum").(common.Player) mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mails := []common.Mail{} for _, str := range(mailIds) { @@ -136,11 +136,10 @@ func (this *mailMgr) CaMarkMail(c *gin.Context) { ErrMsg string `json:"errmsg"` }{} c.JSON(200, rspObj) - */ } func (this *mailMgr) CaGetUnreadMailCnt(c *gin.Context) { - /* + hum := c.MustGet("hum").(common.Player) rspObj := struct { ErrCode int32 `json:"errcode"` ErrMsg string `json:"errmsg"` @@ -155,11 +154,11 @@ func (this *mailMgr) CaGetUnreadMailCnt(c *gin.Context) { } return true }) - c.JSON(200, rspObj)*/ + c.JSON(200, rspObj) } func (this *mailMgr) CaGetAttachment(c *gin.Context) { - /* + hum := c.MustGet("hum").(common.Player) mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mails := []common.Mail{} for _, str := range(mailIds) { @@ -173,11 +172,11 @@ func (this *mailMgr) CaGetAttachment(c *gin.Context) { ErrCode int32 `json:"errcode"` ErrMsg string `json:"errmsg"` }{} - c.JSON(200, rspObj)*/ + c.JSON(200, rspObj) } func (this *mailMgr) CaDeleteMails(c *gin.Context) { - /* + hum := c.MustGet("hum").(common.Player) mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mails := []common.Mail{} for _, str := range(mailIds) { @@ -192,7 +191,6 @@ func (this *mailMgr) CaDeleteMails(c *gin.Context) { ErrMsg string `json:"errmsg"` }{} c.JSON(200, rspObj) - */ } func (this *mailMgr) traversePlayerMail(hum common.Player, cb func(*mail) bool) {