|
|
@@ -307,7 +307,7 @@ local function CommerceAct_ActCheckOpen_InitServer(nOpen, nOperate, nServerKey)
|
|
|
end
|
|
|
|
|
|
-- 获取玩家当前点数
|
|
|
-local function CommerceAct_GetHumanPoint(human)
|
|
|
+function CommerceAct_GetHumanPoint(human)
|
|
|
return human.db.ServerCommerce.nPoint
|
|
|
end
|
|
|
|
|
|
@@ -391,7 +391,6 @@ end
|
|
|
-- 起服初始化
|
|
|
function CommerceAct_Init()
|
|
|
return
|
|
|
-
|
|
|
if _G.is_middle == true then
|
|
|
-- 中心服起服获取信息
|
|
|
ServerCommerceMiddle.CommerceMiddle_InitServer()
|
|
|
@@ -410,7 +409,7 @@ function CommerceAct_Init()
|
|
|
if false == bRet then
|
|
|
print("[CommerceAct_Init] 初始化模块数据失败 nID ".. nID)
|
|
|
end
|
|
|
- end
|
|
|
+ end
|
|
|
print("[CommerceAct_Init] 加载模块成功 name = "..v.name)
|
|
|
else
|
|
|
print("[CommerceAct_Init] 加载模块失败 nID ".. nID)
|
|
|
@@ -428,6 +427,7 @@ end
|
|
|
|
|
|
-- 是否还在活动期间
|
|
|
function CommerceAct_IsRun()
|
|
|
+ return false
|
|
|
if not tCommerceActInfo then
|
|
|
return false
|
|
|
end
|
|
|
@@ -437,9 +437,7 @@ end
|
|
|
|
|
|
-- 玩家登录
|
|
|
function onLogin(human, funcID)
|
|
|
-
|
|
|
return
|
|
|
-
|
|
|
if not human then
|
|
|
return
|
|
|
end
|
|
|
@@ -515,6 +513,7 @@ function isActive(human, YYInfo, funcConfig)
|
|
|
end
|
|
|
|
|
|
function isRed(human, YYInfo, funcConfig)
|
|
|
+ return false
|
|
|
if false == CommerceAct_IsRun() then
|
|
|
return
|
|
|
end
|
|
|
@@ -537,6 +536,7 @@ function isRed(human, YYInfo, funcConfig)
|
|
|
end
|
|
|
|
|
|
function onCharge(human, price, funcID, buyID)
|
|
|
+ return
|
|
|
if not human then
|
|
|
return
|
|
|
end
|
|
|
@@ -572,6 +572,7 @@ function CommerveManager_AddServerPoint(nAddPoint)
|
|
|
local nNewPoint = tCommonDBData.nPoint + nAddPoint
|
|
|
CommonDB.SetCommerceActInfo_Point(nNewPoint)
|
|
|
|
|
|
+ print("[CommerveManager_AddServerPoint] 增加整个服务器的点数 nAddPoint = "..nAddPoint.." nNewPoint = "..nNewPoint)
|
|
|
for _, module in pairs(tCommerceActModuel) do
|
|
|
if module and module.onAllPointChange then
|
|
|
module.onAllPointChange()
|
|
|
@@ -584,6 +585,7 @@ function CommerveManager_AddHumanPint(human, nPoint)
|
|
|
local nNowPoint = CommerceAct_GetHumanPoint(human)
|
|
|
local nNewPoint = nNowPoint + nPoint
|
|
|
CommerceAct_SetHumanPoint(human ,nNewPoint)
|
|
|
+ print("[CommerveManager_AddHumanPint] 增加个人积分 nAddPoint = "..nPoint.." nNewPoint = "..nNewPoint.." name = "..human.db.name)
|
|
|
ServerCommerceActRank.CommercerActRank_HumanPointChange(human, nNewPoint)
|
|
|
end
|
|
|
|