diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index e998e8127b..9420301fdd 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -178,50 +178,25 @@ function this:Refresh() end Util.GetGameObject(self.gameObject,activityType[curType].comp):SetActive(true) - -- local level = 0 - -- if (PlayerManager.level)%10 == 8 then - -- level = PlayerManager.level - -- else - -- level = (math.floor(PlayerManager.level/10)-1)*10+8 - -- end rechargeNum= VipManager.GetChargedNum() - - + curGiftId = rechargeData.goodsId + LogBlue("#curGiftId:"..tostring(curGiftId)) if curType == 1 then - -- this.tip.text = Language[11937]..level..Language[12174] or "" this.tip.text = string.format("恭喜您等级提升至%s级,我们为您准备了超值礼包,助您提升战力!!!",RechargeConfig[curGiftId].Desc) - -- elseif curType == 3 then - -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value - -- local num = tonumber(specialConfig) - -- local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - -- local value2 = GetLanguageStrById(ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name) - -- this.tip.text =Language[11939]..value2..Language[11940] - -- elseif curType == 4 then - -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value - -- local str = string.split(specialConfig,"|") - -- local nums = string.split(str[1],"#") - -- local canGet = false - -- local value = MonsterCampManager.monsterWave - -- local value2 = 0 - -- if value <= tonumber(nums[#nums]) then - -- local temp = tonumber(nums[#nums]) - tonumber(nums[#nums-1]) - -- value2 = math.floor(value/temp) * temp - -- else - -- value2 = math.floor((value - tonumber(nums[#nums]))/tonumber(str[2]))* tonumber(str[2]) + tonumber(nums[#nums]) - -- end + LogPink(string.format("恭喜您等级提升至%s级,我们为您准备了超值礼包,助您提升战力!!!",RechargeConfig[curGiftId].Desc)) elseif curType == 3 then this.tip.text = string.format("恭喜通关当前关卡,我们为您准备了超值礼包,助您战力飙升") + LogYellow(string.format("恭喜通关当前关卡,我们为您准备了超值礼包,助您战力飙升")) elseif curType == 4 then this.tip.text = string.format("恭喜您击败心魔挑战成功,我们为您准备了超值礼包,帮助您击杀心魔快速通关!") + LogYellow(string.format("恭喜您击败心魔挑战成功,我们为您准备了超值礼包,帮助您击杀心魔快速通关!")) else this.tip.text = "" + LogPurple("空的!!!!!!!!!!!") end - -- this.tip.text = curType == 1 and "恭喜您等级提升至"..level.."级,我们为您准备了超值礼包,助您提升战力!!!" or "" - this.arrowsLeft:SetActive(num > 1) this.arrowsRight:SetActive(num > 1) - curGiftId = rechargeData.goodsId curEndTime = rechargeData.endTime this.endTime.text = Language[10573]..TimeToHMS(curEndTime-GetTimeStamp()) this.endTime.gameObject:GetComponent("RectTransform").localPosition = activityType[curType].timePos