Ver código fonte

自助建站-修改 风格列表的接口

15313670163 1 semana atrás
pai
commit
caa88a689b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -667,7 +667,7 @@ class PublicRpcService implements PublicRpcServiceInterface
             ->leftJoin('template', 'template_class.id', '=', 'template.template_class_id')
             ->select('template_class.*', DB::raw('COUNT(template.id) as template_count'))
             ->groupBy('template_class.id')
-            ->orderBy('template_class.updated_at', 'desc')
+            ->orderBy('template_class.id', 'desc')
             ->offset(($data['page'] - 1) * $data['pageSize'])
             ->limit($data['pageSize'])
             ->get();