Commit e1b5f6ecda16861e0607d6b4fed79b531a655d38

Authored by zhouhaihai
1 parent b47316e6

邮件

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/models/Email.lua
... ... @@ -62,7 +62,11 @@ function Email:data()
62 62 end
63 63  
64 64 if attachments == "" and emailData.attachment ~= "" then
65   - attachments = emailData.attachment:format(table.unpack(rewardPms))
  65 + if next(rewardPms) then
  66 + attachments = emailData.attachment:format(table.unpack(rewardPms))
  67 + else
  68 + attachments = emailData.attachment
  69 + end
66 70 end
67 71 end
68 72  
... ...