From 52eeda5545a48f347f093c9862661fd4ad4ebd1c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 6 Jul 2024 21:20:30 +0800 Subject: [PATCH] 1 --- server/mailserver/player/player.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/mailserver/player/player.go b/server/mailserver/player/player.go index a369682a..295f5e26 100644 --- a/server/mailserver/player/player.go +++ b/server/mailserver/player/player.go @@ -92,6 +92,8 @@ func (this *player) MarkMails(mails []common.Mail) error { func (this *player) GetAttachment(mails []common.Mail, c *gin.Context) { this.checkLock() + accountId := c.DefaultQuery("account_id", "") + sessionId := c.DefaultQuery("session_id", "") cbParams := struct { AccountId string `json:"account_id"` Mails []struct { @@ -122,8 +124,8 @@ func (this *player) GetAttachment(mails []common.Mail, c *gin.Context) { f5.GetHttpCliMgr().SendGoStyleJsonRspPost( mt.Table.Config.GetGameApiUrl() + "/webapp/index.php?", map[string]string{ - "account_id": this.GetAccountId(), - "session_id": this.GetSessionId(), + "account_id": accountId, + "session_id": sessionId, "c": "Mail", "a": "getAttachmentCb", "sign": signStr,