【sdk】国内sdk适应修改
parent
c945f53946
commit
40c0ed6075
|
@ -50,17 +50,12 @@ end
|
|||
--
|
||||
function ServerConfigManager.GetConfigInfo(key)
|
||||
-- 包版本大于启用的版本使用新的配置
|
||||
if AppConst.isSDK then
|
||||
LogError(tostring(AppConst.isSDK))
|
||||
LogError(tostring(AndroidDeviceInfo.Instance:GetVersionCode()))
|
||||
LogError(tostring(_ActiveCode))
|
||||
LogError(tostring(AndroidDeviceInfo.Instance:GetVersionCode() >= _ActiveCode))
|
||||
end
|
||||
if not AppConst.isSDK or AndroidDeviceInfo.Instance:GetVersionCode() >= _ActiveCode then
|
||||
if not ConfigMgr then
|
||||
ConfigMgr=App.ConfigMgr
|
||||
end
|
||||
local s = ConfigMgr:GetConfigInfo(key)
|
||||
LogError(key.."|"..tostring(s))
|
||||
return s
|
||||
end
|
||||
end
|
||||
|
|
|
@ -35,7 +35,9 @@ if not AppConst.isSDKLogin then return end
|
|||
end
|
||||
-- 打点事件
|
||||
function this.SendCustomEvent(event, data,type)
|
||||
-- SDKMgr:CustomEvent(event,data,type)
|
||||
if AppConst.isSDKLogin then
|
||||
SDKMgr:CustomEvent(event,data,type)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
|
@ -28,6 +28,11 @@ function this.onSdkPayResult(id)
|
|||
this.EventTrigger[id](id)
|
||||
this.EventTrigger[id] = nil
|
||||
end
|
||||
local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, id)
|
||||
if rechargeConfig then
|
||||
local Price = tostring(rechargeConfig.Price)
|
||||
CustomEventManager.SendCustomEvent("mhtPay", Price ,"4")
|
||||
end
|
||||
end
|
||||
|
||||
function this.Pay(id, func)
|
||||
|
|
Loading…
Reference in New Issue