From edf22f688e10507209b197a184445016d98e380f Mon Sep 17 00:00:00 2001 From: vguanyiwgd Date: Thu, 6 Jun 2024 16:24:50 +0800 Subject: [PATCH] udpate Change-Id: Id80c1a114132359739f1b4e28d6a3f2607d0e411 --- backstage/system/libraries/Recharge_config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backstage/system/libraries/Recharge_config.php b/backstage/system/libraries/Recharge_config.php index 6ec7f56..5983314 100644 --- a/backstage/system/libraries/Recharge_config.php +++ b/backstage/system/libraries/Recharge_config.php @@ -43,8 +43,8 @@ class CI_Recharge_config { if($pz) { foreach ($pz as $k => $v) { $user_type_id = explode(',', $v['user_type_id']); - if ($v['user_type_id'] != '*' || (!in_array($userInfo['type_id'], $user_type_id) && !in_array('*', $user_type_id))) { - // 如果规则不含有用户类型 && 不含有*,则跳过 + if ($v['user_type_id'] != '*' && !in_array($userInfo['type_id'], $user_type_id) && !in_array('*', $user_type_id)) { + // 如果规则不是*,不含有用户类型 && 不含有*,则跳过 continue; } if($v['gift_type'] == 1){