zhuchengjie 3 years ago
parent
commit
c6b18b2147
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/QuickApp/Book/BookController.php

+ 1 - 1
app/Http/Controllers/QuickApp/Book/BookController.php

@@ -209,7 +209,7 @@ class BookController extends BaseController
             if(!$this->send_order_id || $this->send_order_id == 0 ){
             if(!$this->send_order_id || $this->send_order_id == 0 ){
                 \Log::info('un_send_order_book:uid:'.$this->uid);
                 \Log::info('un_send_order_book:uid:'.$this->uid);
                 $result = $this->getCheckBids($channel,$books,$package_id);
                 $result = $this->getCheckBids($channel,$books,$package_id);
-                if(isset($result[1]['books']) && !empty(get_object_vars($result[1]['books']))){
+                if(isset($result[1]['books']) && count((array)$result[1]['books']) > 1){
                     return response()->success($result);
                     return response()->success($result);
                 }
                 }
                 return $this->getCheckBids($channel,$books,0);
                 return $this->getCheckBids($channel,$books,0);