|
@@ -652,7 +652,8 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
->where('pid', $data['pid'])
|
|
|
->offset($data['placeid'])
|
|
|
->limit($data['num'])
|
|
|
- ->orderBy('sort');
|
|
|
+ ->orderBy('sort')
|
|
|
+ ->orderBy('updated_at','desc');
|
|
|
// 如果 $pid 数组不为空,添加 CASE WHEN 条件
|
|
|
if (!empty($pid)) {
|
|
|
$placeholders = implode(',', array_fill(0, count($pid), '?'));
|