From 2ba5a58a3f78f0efe778146be041574bcab4ed7e Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Wed, 4 Aug 2021 14:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B4=AB=E5=BA=9C=E7=A5=9E=E5=8D=B0?= =?UTF-8?q?=E3=80=91=E5=A2=9E=E5=8A=A0=E9=A2=84=E8=A7=88=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Practice/PracticeImprintPanel.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeImprintPanel.lua b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeImprintPanel.lua index 2ea12a3987..464cbc5a1f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Practice/PracticeImprintPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Practice/PracticeImprintPanel.lua @@ -153,9 +153,16 @@ function PracticeImprint:SetSingleImprint(_go,_imprintId) Util.AddOnceClick(maskBtn,function () --未解锁的不可查看 - if not serverData then - PopupTipPanel.ShowTip(string.format("%s解锁",configData.Unlock)) - return + if configData.UnlockView then + if configData.UnlockView == 0 then + PopupTipPanel.ShowTip(string.format("暂未开放...")) + return + end + else + if not serverData then + PopupTipPanel.ShowTip(string.format("%s解锁",configData.Unlock)) + return + end end if serverData then--如果没有解锁 点击查看不能影响后面红点 PlayerPrefs.SetInt(PlayerManager.uid.."Imprint"..configData.Id,1)