Explorar o código

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

15313670163 hai 1 semana
pai
achega
caa88a689b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();