This commit is contained in:
aozhiwei 2024-04-27 10:10:46 +08:00
parent 59b5839d5d
commit 664676127c

View File

@ -121,7 +121,7 @@ func (this *mailMgr) CaGetMailList(c *gin.Context) {
} }
func (this *mailMgr) CaMarkMail(c *gin.Context) { func (this *mailMgr) CaMarkMail(c *gin.Context) {
/* hum := c.MustGet("hum").(common.Player)
mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
mails := []common.Mail{} mails := []common.Mail{}
for _, str := range(mailIds) { for _, str := range(mailIds) {
@ -136,11 +136,10 @@ func (this *mailMgr) CaMarkMail(c *gin.Context) {
ErrMsg string `json:"errmsg"` ErrMsg string `json:"errmsg"`
}{} }{}
c.JSON(200, rspObj) c.JSON(200, rspObj)
*/
} }
func (this *mailMgr) CaGetUnreadMailCnt(c *gin.Context) { func (this *mailMgr) CaGetUnreadMailCnt(c *gin.Context) {
/* hum := c.MustGet("hum").(common.Player)
rspObj := struct { rspObj := struct {
ErrCode int32 `json:"errcode"` ErrCode int32 `json:"errcode"`
ErrMsg string `json:"errmsg"` ErrMsg string `json:"errmsg"`
@ -155,11 +154,11 @@ func (this *mailMgr) CaGetUnreadMailCnt(c *gin.Context) {
} }
return true return true
}) })
c.JSON(200, rspObj)*/ c.JSON(200, rspObj)
} }
func (this *mailMgr) CaGetAttachment(c *gin.Context) { func (this *mailMgr) CaGetAttachment(c *gin.Context) {
/* hum := c.MustGet("hum").(common.Player)
mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
mails := []common.Mail{} mails := []common.Mail{}
for _, str := range(mailIds) { for _, str := range(mailIds) {
@ -173,11 +172,11 @@ func (this *mailMgr) CaGetAttachment(c *gin.Context) {
ErrCode int32 `json:"errcode"` ErrCode int32 `json:"errcode"`
ErrMsg string `json:"errmsg"` ErrMsg string `json:"errmsg"`
}{} }{}
c.JSON(200, rspObj)*/ c.JSON(200, rspObj)
} }
func (this *mailMgr) CaDeleteMails(c *gin.Context) { func (this *mailMgr) CaDeleteMails(c *gin.Context) {
/* hum := c.MustGet("hum").(common.Player)
mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",") mailIds := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
mails := []common.Mail{} mails := []common.Mail{}
for _, str := range(mailIds) { for _, str := range(mailIds) {
@ -192,7 +191,6 @@ func (this *mailMgr) CaDeleteMails(c *gin.Context) {
ErrMsg string `json:"errmsg"` ErrMsg string `json:"errmsg"`
}{} }{}
c.JSON(200, rspObj) c.JSON(200, rspObj)
*/
} }
func (this *mailMgr) traversePlayerMail(hum common.Player, cb func(*mail) bool) { func (this *mailMgr) traversePlayerMail(hum common.Player, cb func(*mail) bool) {