|
|
@@ -70,7 +70,7 @@ function Query(human, id)
|
|
|
|
|
|
--普通奖池
|
|
|
local nLotteryCostCnt = lottery1CostCnt
|
|
|
- if not actData.lastFreeTime or not Util.isSameDay(actData.lastFreeTime) then
|
|
|
+ if not actData.lastFreeTime or not Util.isSameDayByTimes(actData.lastFreeTime, os.time()) then
|
|
|
nLotteryCostCnt = 0
|
|
|
end
|
|
|
|
|
|
@@ -129,7 +129,7 @@ function Lottery(human, id, type)
|
|
|
local targetTotalWeight = comTotalWeight
|
|
|
local targetPrizeCfg = LotteryCfg[1].prizeData
|
|
|
if type == 1 then
|
|
|
- if not actData.lastFreeTime or not Util.isSameDay(actData.lastFreeTime) then
|
|
|
+ if not actData.lastFreeTime or not Util.isSameDayByTimes(actData.lastFreeTime, os.time()) then
|
|
|
actData.lastFreeTime = os.time()
|
|
|
else
|
|
|
itemCnt = lottery1CostCnt
|
|
|
@@ -184,7 +184,7 @@ function Lottery(human, id, type)
|
|
|
msgRet.lotteryTimes = actData.speLotteryTimes or 0
|
|
|
|
|
|
local nLotteryCostCnt = lottery1CostCnt
|
|
|
- if not actData.lastFreeTime or not Util.isSameDay(actData.lastFreeTime) then
|
|
|
+ if not actData.lastFreeTime or not Util.isSameDayByTimes(actData.lastFreeTime, os.time()) then
|
|
|
nLotteryCostCnt = 0
|
|
|
end
|
|
|
Grid.makeItem(msgRet.lottery1cost, lotteryCostID, nLotteryCostCnt)
|
|
|
@@ -202,7 +202,7 @@ function isRed(human, YYInfo, funcConfig)
|
|
|
return false
|
|
|
end
|
|
|
|
|
|
- if not tActData.lastFreeTime or not Util.isSameDay(tActData.lastFreeTime) then
|
|
|
+ if not tActData.lastFreeTime or not Util.isSameDayByTimes(tActData.lastFreeTime, os.time()) then
|
|
|
return true
|
|
|
end
|
|
|
|