|
|
@@ -6,6 +6,8 @@ local Broadcast = require("broadcast.Broadcast")
|
|
|
local OpenAct = require("present.OpenAct")
|
|
|
local YunYingLogic = require("yunying.YunYingLogic")
|
|
|
local DrawCardLogic = require("drawCard.DrawCardLogic")
|
|
|
+local Log = require("common.Log")
|
|
|
+
|
|
|
--[[
|
|
|
开服排名活动 充值排名、招募排名
|
|
|
local:
|
|
|
@@ -24,6 +26,14 @@ local DrawCardLogic = require("drawCard.DrawCardLogic")
|
|
|
onZeroAll() -- 零点处理回调
|
|
|
--]]
|
|
|
|
|
|
+local function OpenServerRank_WriteLog(human, sztext)
|
|
|
+ if human then
|
|
|
+ sztext = sztext.." _id = "..human.db._id.." name = "..human.db.name
|
|
|
+ end
|
|
|
+
|
|
|
+ Log.write(Log.LOGID_OSS_COMMON, sztext)
|
|
|
+end
|
|
|
+
|
|
|
local function getOpenActParam(rankType)
|
|
|
if rankType == OpenServerRankDB.RANK_TYPE_DAY_TOPUP or
|
|
|
rankType == OpenServerRankDB.RANK_TYPE_TOTAL_TOPUP then return OpenAct.OPEN_ACT_TOPUP_RANK end
|
|
|
@@ -115,6 +125,7 @@ function onCharge(human, price, funcID, buyID)
|
|
|
if funcConfig.param == OpenAct.OPEN_ACT_TOPUP_RANK then
|
|
|
OpenServerRankDB.onValueAdd(human, OpenServerRankDB.RANK_TYPE_DAY_TOPUP, price)
|
|
|
OpenServerRankDB.onValueAdd(human, OpenServerRankDB.RANK_TYPE_TOTAL_TOPUP, price)
|
|
|
+ OpenServerRank_WriteLog(human, "[OpenServerRankDB_onCharge] 玩家充值进行上榜操作 price = "..price.."buyID = "..buyID)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
@@ -130,6 +141,7 @@ function onDrawCard(human, funcID, value, drawType)
|
|
|
drawType == DrawCardLogic.DRAWCARD_ID6 then
|
|
|
OpenServerRankDB.onValueAdd(human, OpenServerRankDB.RANK_TYPE_DAY_DRAW_CARD, value)
|
|
|
OpenServerRankDB.onValueAdd(human, OpenServerRankDB.RANK_TYPE_TOTAL_DRAW_CARD, value)
|
|
|
+ OpenServerRank_WriteLog(human, "[OpenServerRankDB_onDrawCard] 玩家抽卡进行上榜操作 value = "..value.."drawType = "..drawType)
|
|
|
end
|
|
|
end
|
|
|
end
|
|
|
@@ -143,9 +155,11 @@ function onHuangjingTower(human,funcID, parameter)
|
|
|
if funcConfig.param == OpenAct.OPEN_ACT_TOWER_RANK then
|
|
|
local towerLv = human.db.tower and human.db.tower.lv or 0
|
|
|
OpenServerRankDB.onValueSet(human, OpenServerRankDB.RANK_TYPE_TOTAL_TOWER, towerLv)
|
|
|
+ OpenServerRank_WriteLog(human, "[OpenServerRankDB_onHuangjingTower] 玩家进行上榜操作 towerLv = "..towerLv)
|
|
|
end
|
|
|
end
|
|
|
|
|
|
function onZeroAll(funcID)
|
|
|
+ OpenServerRank_WriteLog(nil, "[OpenServerRank_onZeroAll] 整点进行发奖励操作 funcID = "..funcID)
|
|
|
OpenServerRankDB.onRewardSend(funcID)
|
|
|
end
|