wangzq %!s(int64=2) %!d(string=hai) anos
pai
achega
e082e43425
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      app/Http/Controllers/QuickApp/Book/BookController.php

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

@@ -636,7 +636,9 @@ class BookController extends BaseController
                 $bid = array_random($bid,4);
                 $bid = array_random($bid,4);
             }
             }
             $orderRecord = ChapterOrderService::hasUserRecord($user->uid);
             $orderRecord = ChapterOrderService::hasUserRecord($user->uid);
-            if($orderRecord && count($bid) >  4){
+
+            // if($orderRecord && count($bid) >=  4){
+            if( count($bid) >=  4){
                 $where = ['is_on_shelf' => [1,2],'bids' => $bid];
                 $where = ['is_on_shelf' => [1,2],'bids' => $bid];
                 // $books = BookConfigService::getBooksByIds($bid,[],false);
                 // $books = BookConfigService::getBooksByIds($bid,[],false);
                 $books = BookConfigService::getBookLists($where,[],false);
                 $books = BookConfigService::getBookLists($where,[],false);