游戏充值触发😃:\MirServer-lua-study\Mir200\Envir\Market_Def\QFunction-0.lua
--充值
function recharge(actor, gold, productid, moneyid)
LOGWrite(gold,productid,moneyid)
GameEvent.push(EventCfg.onRecharge, actor, gold, productid, moneyid)
end
事件添加:D:\MirServer-lua-study\Mir200\Envir\QuestDiary\game\Global.lua
GameEvent.add(EventCfg.onRecharge, Global.Recharge, Global, 1)
--充值触发
function Global.Recharge(actor, gold, productid, moneyid)
-- Global.SyncTotalRealRecharge(actor) --充值后同步总实冲分
-- Global.SyncTodayRealRecharge(actor) --充值后同步总虚冲分
Message.sendmsg(actor, ssrNetMsgCfg.Global_Recharge, gold, productid, moneyid)
end