miduo_client/Assets/ManagedResources/~Lua/Modules/DataCenterService/TapDBManager.lua

34 lines
687 B
Lua
Raw Normal View History

2020-07-10 09:59:56 +08:00
TapDBManager = {}
local this = TapDBManager
function this.Initialize()
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:OnStart()
end
2020-07-10 09:59:56 +08:00
end
function this.SetUser(userId)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetUser(userId)
end
2020-07-10 09:59:56 +08:00
end
function this.SetServer(serverId)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetServer(serverId)
end
2020-07-10 09:59:56 +08:00
end
function this.SetLevel(level)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:SetLevel(level)
end
2020-07-10 09:59:56 +08:00
end
function this.onChargeSuccess(orderId, goodsId, amount, currencyType, payment)
2020-07-13 12:25:55 +08:00
if AppConst.isSDK then
App.TBDMgr:onChargeSuccess(orderId, goodsId, amount, currencyType, payment)
end
2020-07-10 09:59:56 +08:00
end
return TapDBManager