Browse Source

优化角色

songdb 4 năm trước cách đây
mục cha
commit
96b6394e66

+ 1 - 1
app/Modules/Book/Models/BookConfig.php

@@ -1249,6 +1249,6 @@ class BookConfig extends Model
     public static function getSimpleBooksByIds($bids)
     public static function getSimpleBooksByIds($bids)
     {
     {
         $fields = ['book_name','bid','cover'];
         $fields = ['book_name','bid','cover'];
-        return self::select($fields)->whereIn('bid',$bids)->where('is_on_shelf',2)->order('id','desc')->get();
+        return self::select($fields)->whereIn('bid',$bids)->where('is_on_shelf',2)->orderBy('id','desc')->get();
     }
     }
 }
 }