修改透传参数consumerId 为 角色id#商品id 修复sdk支付基金不刷新的问题,
parent
3fabc33ab6
commit
dbb57924a6
|
@ -17,12 +17,14 @@ local curIndex = 0
|
||||||
local lerp = 0
|
local lerp = 0
|
||||||
local maxIndex = 0
|
local maxIndex = 0
|
||||||
local function update()
|
local function update()
|
||||||
lerp = math.clamp(lerp + Time.fixedDeltaTime * 15,0,1)
|
if this.Slider then
|
||||||
local curValue = this.Slider.value * (1-lerp) + curIndex * lerp
|
lerp = math.clamp(lerp + Time.fixedDeltaTime * 15,0,1)
|
||||||
this.Slider.value = curValue
|
local curValue = this.Slider.value * (1-lerp) + curIndex * lerp
|
||||||
local curTextValue = math.floor(((this.Slider.value * (1-lerp) + curIndex * lerp)/32)*100)
|
this.Slider.value = curValue
|
||||||
curTextValue = curTextValue > 100 and 100 or curTextValue
|
local curTextValue = math.floor(((this.Slider.value * (1-lerp) + curIndex * lerp)/32)*100)
|
||||||
this.SliderText.text = curTextValue .."%"
|
curTextValue = curTextValue > 100 and 100 or curTextValue
|
||||||
|
this.SliderText.text = curTextValue .."%"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function LoadingPanel.AddStep(func)
|
function LoadingPanel.AddStep(func)
|
||||||
|
|
|
@ -109,7 +109,7 @@ function this.RequestPay(context)
|
||||||
params.serverID = PlayerManager.serverInfo.server_id
|
params.serverID = PlayerManager.serverInfo.server_id
|
||||||
params.serverName = PlayerManager.serverInfo.name
|
params.serverName = PlayerManager.serverInfo.name
|
||||||
-- 角色相关
|
-- 角色相关
|
||||||
params.roleID = tostring(PlayerManager.uid)
|
params.roleID = tostring(PlayerManager.uid).."#"..tostring(context.Id)
|
||||||
params.roleName = PlayerManager.nickName
|
params.roleName = PlayerManager.nickName
|
||||||
params.roleLevel = PlayerManager.level
|
params.roleLevel = PlayerManager.level
|
||||||
params.vip = tostring(VipManager.GetVipLevel())
|
params.vip = tostring(VipManager.GetVipLevel())
|
||||||
|
|
Loading…
Reference in New Issue