修复搜索分页重复问题

修复搜索分页重复问题
pull/13/head
mengkun 2017-08-05 17:11:05 +08:00 committed by GitHub
parent b1f4dd6d56
commit 4ebe5b4d8b
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}
}