From bf382d665c4c61195533dbd2c6c9fbce152f3c89 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Tue, 24 Jan 2023 09:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=B9=E6=83=A0=E5=95=86=E5=9F=8E=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Recharge/View/GiftPre.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua index 2ceace932d..bfccc2c6bb 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftPre.lua @@ -330,7 +330,14 @@ end function GiftPre:SetType2() self.type2.gameObject:SetActive(true) - self.type2Text1.text = self.data.data.shows[1][2] + --self.type2Text1.text = self.data.data.shows[1][2]/1000 + if self.data.data.shopItemData and self.data.data.shopItemData.GainCrystals then + self.type2Text1.text=self.data.data.shopItemData.GainCrystal[1][2] + else + self.type2Text1.text = self.data.data.shows[1][2] + end + + --LogError("aaaa=="..self.data.data.shows[1][2]) self.type2Text2.text=self.data.data.shopItemData.Rebate if GetCurLanguage() == 0 then self.type2Text1.gameObject:GetComponent("RectTransform").anchoredPosition = offSetX[0].txt1