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