From cf878427eff853cc584e67b1f521f8308aa1521e Mon Sep 17 00:00:00 2001 From: gaoxin Date: Wed, 9 Jun 2021 12:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A4=BC=E5=8C=85=E3=80=91=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=A4=E7=A9=BA=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Operating/OperatingManager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Operating/OperatingManager.lua b/Assets/ManagedResources/~Lua/Modules/Operating/OperatingManager.lua index f1c5287d38..dd771ec556 100644 --- a/Assets/ManagedResources/~Lua/Modules/Operating/OperatingManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Operating/OperatingManager.lua @@ -256,7 +256,7 @@ end -- 根据类型判断相应的物品是否开启并返回相应的ID function this.GetActiveGoodsIDByType(goodsType) for goodsId, endTime in pairs(_GoodsDurationData) do - if rechargeConfig[goodsId].Type == goodsType and endTime > GetTimeStamp() then + if rechargeConfig[goodsId] and rechargeConfig[goodsId].Type == goodsType and endTime > GetTimeStamp() then return goodsId, endTime end end