This commit is contained in:
aozhiwei 2024-05-09 13:29:38 +08:00
parent fe8e06e3a4
commit 806ac59d8c

View File

@ -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 {