|
@@ -613,7 +613,6 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
->offset($data['placeid'])
|
|
|
->limit($data['num'])
|
|
|
->orderBy('sort');
|
|
|
-
|
|
|
// 如果 $pid 数组不为空,添加 CASE WHEN 条件
|
|
|
if (!empty($pid)) {
|
|
|
$placeholders = implode(',', array_fill(0, count($pid), '?'));
|
|
@@ -624,7 +623,8 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
}
|
|
|
|
|
|
// 执行查询
|
|
|
- $result = $query->get();
|
|
|
+ $placeid = $data['placeid']-1;
|
|
|
+ $result = $query->offset($placeid)->limit($data['num'])->get();
|
|
|
if(!empty($result)){
|
|
|
return Result::success($result);
|
|
|
}else{
|