Преглед изворни кода

Merge branch 'stabble' of iqiyoo:zhuishuyun_wap

onlinetest пре 6 година
родитељ
комит
e649baee2a
1 измењених фајлова са 1 додато и 1 уклоњено
  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){
         if($old){
             return -1;
             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){
         if(!$new_yunqi_book){
             return -2;
             return -2;
         }
         }