|
|
@@ -52,6 +52,16 @@ local function BusThreeGrandGift_CheckAndResetDB(human)
|
|
|
or not human.db.absAct[BUSTHREEGRANDGIFTABSID].tGiftInfo then
|
|
|
BusThreeGrandGift_CreatDB(human)
|
|
|
end
|
|
|
+
|
|
|
+ local tStatus = human.db.absAct[BUSTHREEGRANDGIFTABSID].tGiftInfo.tStatus
|
|
|
+ if tStatus and #tStatus < #tGrandGiftConf then
|
|
|
+ for i=#tStatus+1, #tGrandGiftConf do
|
|
|
+ tStatus[i] = {
|
|
|
+ nFreeStatus = CommonDefine.COMMON_PRIZE_STATE_NOGET,
|
|
|
+ nPayStatus = BUSTHREEGRANDGIFT_PAY_NOGET
|
|
|
+ }
|
|
|
+ end
|
|
|
+ end
|
|
|
end
|
|
|
|
|
|
-- 获取当前远征次数
|
|
|
@@ -185,13 +195,13 @@ end
|
|
|
|
|
|
-----------------------------------外部调用-----------------------------
|
|
|
function isOpen(human, YYInfo, funcConfig)
|
|
|
- print("[BusThreeGrandGift_isOpen] 进入判断")
|
|
|
+ -- print("[BusThreeGrandGift_isOpen] 进入判断")
|
|
|
local state, endTime, startTime = AbsActLogic.isStarted(human, funcConfig and funcConfig.funcID or BUSTHREEGRANDGIFTABSID)
|
|
|
if not state then
|
|
|
print("[BusThreeGrandGift_isOpen] 当前活动未开启")
|
|
|
return
|
|
|
end
|
|
|
- print("[BusThreeGrandGift_isOpen] 进入判断 endTime = "..endTime.." startTime = "..startTime)
|
|
|
+ -- print("[BusThreeGrandGift_isOpen] 进入判断 endTime = "..endTime.." startTime = "..startTime)
|
|
|
return true, endTime, startTime
|
|
|
end
|
|
|
|
|
|
@@ -215,7 +225,7 @@ function isRed(human, YYInfo, absActConfig)
|
|
|
end
|
|
|
|
|
|
function onCharge(human, price, funcID, buyID)
|
|
|
- print("[BusThreeGrandGift_onCharge] 进入购买 buyID = "..buyID)
|
|
|
+ -- print("[BusThreeGrandGift_onCharge] 进入购买 buyID = "..buyID)
|
|
|
|
|
|
BusThreeGrandGift_CheckAndResetDB(human)
|
|
|
|
|
|
@@ -230,7 +240,7 @@ function onCharge(human, price, funcID, buyID)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
- print("[BusThreeGrandGift_onCharge] 发送协议完成")
|
|
|
+ -- print("[BusThreeGrandGift_onCharge] 发送协议完成")
|
|
|
|
|
|
BusThreeGrandGift_Query(human)
|
|
|
-- BusOneActivityTask.BusOneTask_SendRed(human)
|