From 806ac59d8cc3bb2c9c2660659c37b2d07f6890e1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 9 May 2024 13:29:38 +0800 Subject: [PATCH] 1 --- server/mailserver/mail/mail.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/mailserver/mail/mail.go b/server/mailserver/mail/mail.go index 0e40e0b5..b82ffe21 100644 --- a/server/mailserver/mail/mail.go +++ b/server/mailserver/mail/mail.go @@ -38,6 +38,14 @@ func (this *mail) loadFromDb(ds *f5.DataSet) { this.expireTime = q5.ToInt32(ds.GetByName("expireTime")) this.userRegStartTime = q5.ToInt32(ds.GetByName("user_reg_start_time")) this.userRegEndTime = q5.ToInt32(ds.GetByName("user_reg_end_time")) + { + attachmentsStr := ds.GetByName("attachments") + if attachmentsStr != "" { + if err := q5.DecodeJson(attachmentsStr, &this.attachments); err != nil { + panic("mail.loadFromDb parse attachments error " + q5.ToString(this.mailId)) + } + } + } } func (this *mail) isType(mailType int32) bool {