From fc8e212efb71888fc1819e789f0f07d4e1c51f0d Mon Sep 17 00:00:00 2001 From: zqj <582132116@qq.com> Date: Tue, 20 Jul 2021 18:27:47 +0800 Subject: [PATCH] fix: 月卡- 增刊异常 --- src/models/Store.lua | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/src/models/Store.lua b/src/models/Store.lua index daeae7f..7a21e00 100644 --- a/src/models/Store.lua +++ b/src/models/Store.lua @@ -343,6 +343,8 @@ end --获取月卡每日奖励 function Store:getMonthCardDailyReward(id) + if not id then return nil end + if self:isMonthCardExpire() or self:getProperty("monthCardReceive") == 1 then return nil, nil end local before_ex = self:getProperty("monthCardEx") @@ -369,6 +371,8 @@ end --获取特刊每日奖励 function Store:getSMonthCardDailyReward(id) + if not id then return nil end + local before_ex = SuperMonthCard["periods"](self, id) local reward, change, cur_ex= SuperMonthCard["itemDaily"](self, id) -- libgit2 0.21.2