This commit is contained in:
yangduo 2024-08-19 15:38:36 +08:00
parent 925758f7f5
commit 3d036641e0

View File

@ -318,7 +318,6 @@ func (this *MailApi) DelMail(c *gin.Context) {
}
func (this *MailApi) CheckAttachment(list []common.Attachment, c *gin.Context) bool {
return true
if data, err := json.Marshal(list); err != nil || len(data) > 0xFF {
c.JSON(http.StatusOK, gin.H{
"code": 2,