songdb il y a 4 ans
Parent
commit
96b6394e66
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Modules/Book/Models/BookConfig.php

+ 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();
     }
     }
 }
 }