|
@@ -18,6 +18,7 @@ local Grid = require("bag.Grid")
|
|
|
local BagLogic = require("bag.BagLogic")
|
|
local BagLogic = require("bag.BagLogic")
|
|
|
local BuyLogic = require("topup.BuyLogic")
|
|
local BuyLogic = require("topup.BuyLogic")
|
|
|
local YunYingLogic = require("yunying.YunYingLogic")
|
|
local YunYingLogic = require("yunying.YunYingLogic")
|
|
|
|
|
+local CommonDB = require("common.CommonDB")
|
|
|
|
|
|
|
|
LIBAOTYPE_WEEK = 1 -- 每周礼包
|
|
LIBAOTYPE_WEEK = 1 -- 每周礼包
|
|
|
LIBAOTYPE_MONTH = 2 -- 每月礼包
|
|
LIBAOTYPE_MONTH = 2 -- 每月礼包
|
|
@@ -26,6 +27,8 @@ FREE_BUY = 1 -- 免费领取
|
|
|
RMB_BUY = 2 -- rmb购买
|
|
RMB_BUY = 2 -- rmb购买
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+local COND_OPEN_SRV_DAYS = 2 -- 需要开服2天后才展示
|
|
|
|
|
+
|
|
|
local WEEK_GITFT_ACTID = 315 -- 周礼包活动Id
|
|
local WEEK_GITFT_ACTID = 315 -- 周礼包活动Id
|
|
|
local MONTH_GITFT_ACTID = 316 -- 月礼包活动Id
|
|
local MONTH_GITFT_ACTID = 316 -- 月礼包活动Id
|
|
|
|
|
|
|
@@ -259,6 +262,11 @@ function isOpen(human, YYInfo, funcConfig)
|
|
|
return false
|
|
return false
|
|
|
end
|
|
end
|
|
|
|
|
|
|
|
|
|
+ local openDay = CommonDB.getServerOpenDay()
|
|
|
|
|
+ if libaoType == LIBAOTYPE_MONTH and openDay < COND_OPEN_SRV_DAYS then
|
|
|
|
|
+ return false
|
|
|
|
|
+ end
|
|
|
|
|
+
|
|
|
return true, endTime, startTime
|
|
return true, endTime, startTime
|
|
|
end
|
|
end
|
|
|
|
|
|