zz %!s(int64=6) %!d(string=hai) anos
pai
achega
6948fa0560
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Modules/Book/Services/BookService.php

+ 1 - 1
app/Modules/Book/Services/BookService.php

@@ -88,7 +88,7 @@ class BookService
         if($old){
             return -1;
         }
-        $new_yunqi_book = DB::connection('new_yunqi')->table('books')->where('id',$bid)->fist();
+        $new_yunqi_book = DB::connection('new_yunqi')->table('books')->where('id',$bid)->first();
         if(!$new_yunqi_book){
             return -2;
         }