Explorar el Código

Merge branch 'web_sannong_fr'

15313670163 hace 3 meses
padre
commit
3283799485
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -664,7 +664,7 @@ class WebsiteService implements WebsiteServiceInterface
             'type' => $data['type'] 
         ]; 
         $num=$data['num'];
-        $result=Link::where($where)->orderBy('id')->limit($num)->get(); 
+        $result=Link::where($where)->orderBy('sort')->limit($num)->get(); 
         if(!empty($result)){ 
             return Result::success($result);  
         }else{