diff --git a/api.php b/api.php index 8662f34..995812c 100644 --- a/api.php +++ b/api.php @@ -161,7 +161,7 @@ switch($types) if($pages<1) $pages=1; //纠正错误的值 $offset= ($pages-1) * $limit; //偏移量 - $data = $API->search($s, $pages, $limit); + $data = $API->search($s, $offset + 1, $limit); echojson($data); } @@ -192,4 +192,4 @@ function echojson($data) //json和jsonp通用 } else { die($data); } -} \ No newline at end of file +}