【充值】修改首充奖励规则

dev_chengFeng
gaoxin 2021-03-15 10:38:24 +08:00
parent 4f326e59e5
commit 43c94a2c15
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ function DayRewardItem:SetValue(context,_sortingOrder)
AccumRecharge = missInfo.progress
end
end
if AccumRecharge >= self.context.Values[1][1] then
if (self.context.Values[1][1] == 1 and AccumRecharge > 0)
or AccumRecharge >= self.context.Values[1][1] then
local day = GetTimePass(FirstRechargeManager.GetRechargeTime())--FirstRechargeManager.GetRechargeTime()
if self.context.Values[1][2] <= day then
local state = ActivityGiftManager.GetActivityInfo(context.ActivityId, context.Id).state