Commit df0c871811cd1375dc4329e40d88cd44342d71a0

Authored by 测试
1 parent 1be37174

充值返利邮件新增

@@ -293,8 +293,6 @@ MailId = { @@ -293,8 +293,6 @@ MailId = {
293 SuperMonthCardEx = 204, 293 SuperMonthCardEx = 204,
294 BattleCardAward = 210, 294 BattleCardAward = 210,
295 295
296 - PaySignAward = 222,  
297 -  
298 ActSellFood = 231, 296 ActSellFood = 231,
299 ActDrawCard = 232, 297 ActDrawCard = 232,
300 ActAdvDraw = 233, 298 ActAdvDraw = 233,
@@ -303,6 +301,9 @@ MailId = { @@ -303,6 +301,9 @@ MailId = {
303 ActDrawCardReward = 222, 301 ActDrawCardReward = 222,
304 ActAdvDrawReward = 223, 302 ActAdvDrawReward = 223,
305 ActOpenBoxReward = 224, 303 ActOpenBoxReward = 224,
  304 +
  305 + PaySignAward = 241,
  306 + PayBackAward = 242,
306 } 307 }
307 308
308 TriggerEventType = { 309 TriggerEventType = {
1 -Subproject commit 9ce6c8d165817a183c2867c4e7dca9d6a5600669 1 +Subproject commit 5751e98613ad7ade246cb9068c6752ecca115163
src/models/Activity.lua
@@ -334,7 +334,7 @@ activityFunc[Activity.ActivityType.PayBack] = { @@ -334,7 +334,7 @@ activityFunc[Activity.ActivityType.PayBack] = {
334 local newVal = oldVal + twd 334 local newVal = oldVal + twd
335 local gift = self.owner:getPaybackReward(oldVal, newVal) 335 local gift = self.owner:getPaybackReward(oldVal, newVal)
336 if gift ~= "" then 336 if gift ~= "" then
337 - self.owner:sendMail(MailId.MonthCard, nil, gift) 337 + self.owner:sendMail(MailId.PayBackAward, nil, gift, {newVal})
338 end 338 end
339 self:updateActData(actType, newVal, not notify) 339 self:updateActData(actType, newVal, not notify)
340 end, 340 end,
src/models/Email.lua
@@ -49,7 +49,7 @@ function Email:data() @@ -49,7 +49,7 @@ function Email:data()
49 if emailData then 49 if emailData then
50 -- 如果内容是直接插入到数据库 50 -- 如果内容是直接插入到数据库
51 if content == "" and emailData.body ~= "" then 51 if content == "" and emailData.body ~= "" then
52 - content = io.readfile("src/" .. emailData.body) 52 + content = io.readfile("src/" .. emailData.body) or ""
53 content = content:format(table.unpack(contentPms)) 53 content = content:format(table.unpack(contentPms))
54 end 54 end
55 55