1
This commit is contained in:
parent
fffbaba587
commit
68d2a07d51
@ -54,6 +54,17 @@ func mail_getAttachment(c *gin.Context) {
|
|||||||
ErrMsg string `json:"errmsg"`
|
ErrMsg string `json:"errmsg"`
|
||||||
}
|
}
|
||||||
mailIdsStr := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
|
mailIdsStr := q5.StrSplit(c.DefaultQuery("mail_ids", ""), ",")
|
||||||
|
info := struct {
|
||||||
|
MailList []struct {
|
||||||
|
MailId string `json:"mailid"`
|
||||||
|
Attachments []struct {
|
||||||
|
ItemId int32 `json:"itemid"`
|
||||||
|
ItemNum int32 `json:"itemnum"`
|
||||||
|
} `json:"attachments"`
|
||||||
|
} `json:"mail_list"`
|
||||||
|
} {
|
||||||
|
|
||||||
|
}
|
||||||
mailIds := []int64{}
|
mailIds := []int64{}
|
||||||
mails := []*common.MailDto{}
|
mails := []*common.MailDto{}
|
||||||
for i := 0; i < len(mailIdsStr); i++ {
|
for i := 0; i < len(mailIdsStr); i++ {
|
||||||
@ -70,6 +81,7 @@ func mail_getAttachment(c *gin.Context) {
|
|||||||
params["a"] = "getAttachment"
|
params["a"] = "getAttachment"
|
||||||
params["account_id"] = hum.GetAccountId()
|
params["account_id"] = hum.GetAccountId()
|
||||||
params["session_id"] = hum.GetSessionId()
|
params["session_id"] = hum.GetSessionId()
|
||||||
|
params["info"] = q5.EncodeJson(&info)
|
||||||
hum.UnLock()
|
hum.UnLock()
|
||||||
f5.GetHttpCliMgr().SyncSendGoStyleRequest(
|
f5.GetHttpCliMgr().SyncSendGoStyleRequest(
|
||||||
apiUrl,
|
apiUrl,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user