diff --git a/Assets/ManagedResources/~Lua/Modules/Message/LoadingPanel.lua b/Assets/ManagedResources/~Lua/Modules/Message/LoadingPanel.lua index 2511a8c70e..500e60f9cd 100644 --- a/Assets/ManagedResources/~Lua/Modules/Message/LoadingPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Message/LoadingPanel.lua @@ -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) diff --git a/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua b/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua index 7c8b4cf937..9a02c01a60 100644 --- a/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Pay/PayManager.lua @@ -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())