Commit 2e705c946dbd69251cdf26647e36a75c66f644d2
1 parent
56763ca7
feat: 跨周获得的等级效果奖励通过邮件发送 emailId=380
Showing
1 changed file
with
10 additions
and
3 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -2847,11 +2847,18 @@ function RolePlugin.bind(Role) | @@ -2847,11 +2847,18 @@ function RolePlugin.bind(Role) | ||
2847 | return towerBnous[SystemBnousType.HangTime] or 0 + tmptime | 2847 | return towerBnous[SystemBnousType.HangTime] or 0 + tmptime |
2848 | end | 2848 | end |
2849 | 2849 | ||
2850 | - function Role:getBnousPvpTicket() | ||
2851 | - local towerBnous = self:getTowerBnousActive() | 2850 | + function Role:sendLevelBnousPvpTicketMail() |
2852 | local levelBnous = self:getLevelBnous() | 2851 | local levelBnous = self:getLevelBnous() |
2853 | local pvpTicket = levelBnous[SystemBnousType.PvpTicket] or {} | 2852 | local pvpTicket = levelBnous[SystemBnousType.PvpTicket] or {} |
2854 | - return appendTableBnous(towerBnous[SystemBnousType.PvpTicket], pvpTicket) | 2853 | + if next(pvpTicket) then |
2854 | + self:sendMail(380, nil, pvpTicket) | ||
2855 | + end | ||
2856 | + end | ||
2857 | + | ||
2858 | + function Role:getBnousPvpTicket() | ||
2859 | + self:sendLevelBnousPvpTicketMail() | ||
2860 | + local towerBnous = self:getTowerBnousActive() | ||
2861 | + return towerBnous[SystemBnousType.PvpTicket] or {} | ||
2855 | end | 2862 | end |
2856 | 2863 | ||
2857 | function Role:getBnousSweep() | 2864 | function Role:getBnousSweep() |