修改透传参数consumerId 为 角色id#商品id 修复sdk支付基金不刷新的问题,

dev_chengFeng
gaoxin 2020-09-14 11:28:54 +08:00 committed by JieLing
parent 3fabc33ab6
commit dbb57924a6
2 changed files with 9 additions and 7 deletions

View File

@ -17,12 +17,14 @@ local curIndex = 0
local lerp = 0
local maxIndex = 0
local function update()
lerp = math.clamp(lerp + Time.fixedDeltaTime * 15,0,1)
local curValue = this.Slider.value * (1-lerp) + curIndex * lerp
this.Slider.value = curValue
local curTextValue = math.floor(((this.Slider.value * (1-lerp) + curIndex * lerp)/32)*100)
curTextValue = curTextValue > 100 and 100 or curTextValue
this.SliderText.text = curTextValue .."%"
if this.Slider then
lerp = math.clamp(lerp + Time.fixedDeltaTime * 15,0,1)
local curValue = this.Slider.value * (1-lerp) + curIndex * lerp
this.Slider.value = curValue
local curTextValue = math.floor(((this.Slider.value * (1-lerp) + curIndex * lerp)/32)*100)
curTextValue = curTextValue > 100 and 100 or curTextValue
this.SliderText.text = curTextValue .."%"
end
end
function LoadingPanel.AddStep(func)

View File

@ -109,7 +109,7 @@ function this.RequestPay(context)
params.serverID = PlayerManager.serverInfo.server_id
params.serverName = PlayerManager.serverInfo.name
-- 角色相关
params.roleID = tostring(PlayerManager.uid)
params.roleID = tostring(PlayerManager.uid).."#"..tostring(context.Id)
params.roleName = PlayerManager.nickName
params.roleLevel = PlayerManager.level
params.vip = tostring(VipManager.GetVipLevel())