This commit is contained in:
yangduo 2025-01-16 18:27:56 +08:00
parent c9acff8aa7
commit 575d4312ee

View File

@ -49,8 +49,8 @@ class Privilege
if ($row) { if ($row) {
$nowtime = time(); $nowtime = time();
$vip_info = json_decode($row['vip_info'], true); $vip_info = json_decode($row['vip_info'], true);
foreach ($vip_info as $key => $carditem) { foreach ($vip_info as $carditem) {
if ($vip_info[$key]['expire'] == 0 || $vip_info[$key]['expire'] > $nowtime) { if ($carditem['expire'] == 0 || $carditem['expire'] > $nowtime) {
$privilegecard_conf = metatable\getPrivilegeCardById($carditem['id']); $privilegecard_conf = metatable\getPrivilegeCardById($carditem['id']);
if (!$privilegecard_conf) { if (!$privilegecard_conf) {
$plus += $privilegecard_conf[$name]; $plus += $privilegecard_conf[$name];