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