|
|
@@ -318,7 +318,9 @@ end
|
|
|
|
|
|
----------------------------------------- 外部调用开始 -------------------------------------
|
|
|
function onZeroAll(funcID)
|
|
|
- return
|
|
|
+ do
|
|
|
+ return
|
|
|
+ end
|
|
|
local nNowTime = os.time()
|
|
|
local tDate = os.date("*t",nNowTime)
|
|
|
|
|
|
@@ -352,7 +354,9 @@ function onZeroAll(funcID)
|
|
|
end
|
|
|
|
|
|
function onHour(hour)
|
|
|
- return
|
|
|
+ do
|
|
|
+ return
|
|
|
+ end
|
|
|
local nNowTime = os.time()
|
|
|
local tDate = os.date("*t",nNowTime)
|
|
|
|
|
|
@@ -390,7 +394,9 @@ end
|
|
|
|
|
|
-- 起服初始化
|
|
|
function CommerceAct_Init()
|
|
|
- return
|
|
|
+ do
|
|
|
+ return
|
|
|
+ end
|
|
|
if _G.is_middle == true then
|
|
|
-- 中心服起服获取信息
|
|
|
ServerCommerceMiddle.CommerceMiddle_InitServer()
|
|
|
@@ -437,7 +443,10 @@ end
|
|
|
|
|
|
-- 玩家登录
|
|
|
function onLogin(human, funcID)
|
|
|
- return
|
|
|
+ do
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
if not human then
|
|
|
return
|
|
|
end
|
|
|
@@ -514,6 +523,7 @@ end
|
|
|
|
|
|
function isRed(human, YYInfo, funcConfig)
|
|
|
return false
|
|
|
+
|
|
|
if false == CommerceAct_IsRun() then
|
|
|
return
|
|
|
end
|
|
|
@@ -536,7 +546,9 @@ function isRed(human, YYInfo, funcConfig)
|
|
|
end
|
|
|
|
|
|
function onCharge(human, price, funcID, buyID)
|
|
|
- return
|
|
|
+ do
|
|
|
+ return
|
|
|
+ end
|
|
|
if not human then
|
|
|
return
|
|
|
end
|