Browse Source

sign book tag bugs

zz 6 năm trước cách đây
mục cha
commit
a0ded7e675

+ 1 - 1
app/Http/Controllers/Wap/User/UserController.php

@@ -417,7 +417,7 @@ class UserController extends BaseController
         }
         }
         //Log::info($bids);
         //Log::info($bids);
         $result =  DB::select(sprintf('select book_configs.book_name,intro,bid,books.category_name,book_configs.cover,first_cid,
         $result =  DB::select(sprintf('select book_configs.book_name,intro,bid,books.category_name,book_configs.cover,first_cid,
-(select GROUP_CONCAT(tags) from book_tags where bid = book_configs.bid) as tag from book_configs 
+(select GROUP_CONCAT(tags) from book_tags where bid = book_configs.bid and `status` = 1) as tag from book_configs 
 left join books on books.id = book_configs.bid left join book_categories on book_categories.id = books.category_id 
 left join books on books.id = book_configs.bid left join book_categories on book_categories.id = books.category_id 
 where bid in (%s) and is_on_shelf =2 ORDER  by field(book_configs.bid,%s)',$bids,$bids));
 where bid in (%s) and is_on_shelf =2 ORDER  by field(book_configs.bid,%s)',$bids,$bids));
         $data = [];
         $data = [];