Browse Source

修改排序

rkljw 6 months ago
parent
commit
88364b42f4
3 changed files with 1 additions and 1 deletions
  1. 1 0
      app/JsonRpc/WebsiteService.php
  2. 0 0
      runtime/container/scan.cache
  3. 0 1
      runtime/hyperf.pid

+ 1 - 0
app/JsonRpc/WebsiteService.php

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

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


+ 0 - 1
runtime/hyperf.pid

@@ -1 +0,0 @@
-2453

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