From 575d4312eec515b27ae492b37c7fb90aa67ac3b9 Mon Sep 17 00:00:00 2001 From: yangduo Date: Thu, 16 Jan 2025 18:27:56 +0800 Subject: [PATCH] 1 --- webapp/classes/Privilege.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/classes/Privilege.php b/webapp/classes/Privilege.php index f368c8c..e08014a 100644 --- a/webapp/classes/Privilege.php +++ b/webapp/classes/Privilege.php @@ -49,8 +49,8 @@ class Privilege if ($row) { $nowtime = time(); $vip_info = json_decode($row['vip_info'], true); - foreach ($vip_info as $key => $carditem) { - if ($vip_info[$key]['expire'] == 0 || $vip_info[$key]['expire'] > $nowtime) { + foreach ($vip_info as $carditem) { + if ($carditem['expire'] == 0 || $carditem['expire'] > $nowtime) { $privilegecard_conf = metatable\getPrivilegeCardById($carditem['id']); if (!$privilegecard_conf) { $plus += $privilegecard_conf[$name];