parent
b1f4dd6d56
commit
4ebe5b4d8b
4
api.php
4
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue