Browse Source

Merge branch 'web_sannong_fr'

15313670163 1 month ago
parent
commit
3283799485
1 changed files with 1 additions and 1 deletions
  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{