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){