支付
This commit is contained in:
parent
23f80ea1e9
commit
f6f00416fb
@ -155,11 +155,13 @@ if NOT_PUBLISH then
|
||||
[SDKManager.doNextFrame] = true,
|
||||
[SDKManager.initPayListener] = true,
|
||||
[SDKManager.tryLoadRewardedAdDelay] = true,
|
||||
[ModuleManager.LoginManager] = true,
|
||||
[ScrollRectBase.refillCells] = true,
|
||||
[DataManager.scheduleGlobal] = true,
|
||||
[DataManager.doCrossDay] = true,
|
||||
[NetManager.performWithDelayGlobal] = true,
|
||||
[NetManager.scheduleGlobal] = true,
|
||||
[PayManager.retrySendPayRecord] = true,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
@ -57,14 +57,16 @@ SDKManager.PAY_TYPE = {
|
||||
local PAY_TYPE_IN_APP = "inapp"
|
||||
local PAY_TYPE_SUBS = "subs"
|
||||
|
||||
local SDKPayMgr
|
||||
if CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.Android then
|
||||
SDKPayMgr = require "app/common/sdk_pay_google_manager"
|
||||
elseif CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.IPhonePlayer then
|
||||
SDKPayMgr = require "app/common/sdk_pay_ios_manager"
|
||||
else
|
||||
SDKPayMgr = require "app/common/sdk_pay_default_manager"
|
||||
end
|
||||
-- local SDKPayMgr
|
||||
-- if CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.Android then
|
||||
-- SDKPayMgr = require "app/common/sdk_pay_google_manager"
|
||||
-- elseif CS.UnityEngine.Application.platform == CS.UnityEngine.RuntimePlatform.IPhonePlayer then
|
||||
-- SDKPayMgr = require "app/common/sdk_pay_ios_manager"
|
||||
-- else
|
||||
-- SDKPayMgr = require "app/common/sdk_pay_default_manager"
|
||||
-- end
|
||||
|
||||
local SDKPayMgr = require "app/common/sdk_pay_default_manager"
|
||||
|
||||
function SDKManager:init()
|
||||
Logger.logHighlight("SDK INIT ---------------")
|
||||
|
||||
@ -31,10 +31,11 @@ function SDKPayDefaultManager:getPriceCurrencyCode(skuId)
|
||||
end
|
||||
|
||||
function SDKPayDefaultManager:getSDKPayType()
|
||||
if EDITOR_MODE then
|
||||
-- if EDITOR_MODE then
|
||||
-- return SDKManager.PAY_TYPE.DEBUG
|
||||
-- end
|
||||
-- return SDKManager.PAY_TYPE.NONE
|
||||
return SDKManager.PAY_TYPE.DEBUG
|
||||
end
|
||||
return SDKManager.PAY_TYPE.NONE
|
||||
end
|
||||
|
||||
function SDKPayDefaultManager:getPurchaseArgs(purchaseToken, uuid, channelOrderId, productId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user