From e1b5f6ecda16861e0607d6b4fed79b531a655d38 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Thu, 31 Dec 2020 15:02:38 +0800 Subject: [PATCH] 邮件 --- src/models/Email.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/Email.lua b/src/models/Email.lua index 95ab75c..20b3d3a 100644 --- a/src/models/Email.lua +++ b/src/models/Email.lua @@ -62,7 +62,11 @@ function Email:data() end if attachments == "" and emailData.attachment ~= "" then - attachments = emailData.attachment:format(table.unpack(rewardPms)) + if next(rewardPms) then + attachments = emailData.attachment:format(table.unpack(rewardPms)) + else + attachments = emailData.attachment + end end end -- libgit2 0.21.2