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