2020-07-25 20:42:11 +08:00
|
|
|
|
TapDBManager = {}
|
2020-07-10 09:59:56 +08:00
|
|
|
|
local this = TapDBManager
|
|
|
|
|
function this.Initialize()
|
2020-07-13 12:25:55 +08:00
|
|
|
|
if AppConst.isSDK then
|
2020-07-26 15:55:21 +08:00
|
|
|
|
local appId = "wjtsq7xrwb48t2uw"
|
|
|
|
|
local channel = VersionManager:GetVersionInfo("channel")
|
|
|
|
|
local subChannel = VersionManager:GetVersionInfo("subChannel")
|
|
|
|
|
local version = VersionManager:GetVersionInfo("version")
|
|
|
|
|
Debug.log("TapDBManager init: "..appId.."|"..channel.."_"..subChannel.."|"..version)
|
|
|
|
|
App.TBDMgr:Init(appId, channel.."_"..subChannel, version)
|
2020-07-13 12:25:55 +08:00
|
|
|
|
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
|