Browse Source

修改排序

rkljw 4 months ago
parent
commit
fa37cbc81d
2 changed files with 1 additions and 0 deletions
  1. 1 0
      app/JsonRpc/WebsiteService.php
  2. 0 0
      runtime/container/scan.cache

+ 1 - 0
app/JsonRpc/WebsiteService.php

@@ -885,6 +885,7 @@ class WebsiteService implements WebsiteServiceInterface
             ->with(["websiteCategory"=>function ($query) {
                 $query->where(['pid'=>0])->select('website_id','name','alias','category_id');
             }])
+            ->orderBy('created_at','desc')
             ->limit($data['pageSize'])->offset(($data['page']-1)*$data['pageSize'])
             ->get();
 

File diff suppressed because it is too large
+ 0 - 0
runtime/container/scan.cache


Some files were not shown because too many files changed in this diff