ソースを参照

修改友情链接排序

15313670163 1 ヶ月 前
コミット
cfdd118e5a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/JsonRpc/WebsiteService.php

+ 1 - 1
app/JsonRpc/WebsiteService.php

@@ -665,7 +665,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{