diff --git a/application/api/model/Room.php b/application/api/model/Room.php index f11948ea..36fc7248 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -1883,9 +1883,7 @@ class Room extends Model } } else { // 第二页及以后:只显示麦下用户 - // 计算偏移量:总偏移量 = (页码-1) * 每页数量 - 麦上用户数量 - // 因为第一页包含了麦上用户,所以从第二页开始只需要麦下用户 - $offset = ($page - 1) * $limit - $onPitCount; + $offset = ($page - 1) * $limit; // 确保偏移量不会为负数 $offset = max(0, $offset);