作者 赵彬吉

UPDATE

... ... @@ -275,7 +275,7 @@ class ProductController extends BaseController
ProjectServer::useProject($project_id);
$product = Product::whereFullText('title', $keyword)->inRandomOrder()->select(['title', 'intro', 'thumb', 'id'])->first();
$product = Product::whereFullText('title', $keyword)->where('status', Product::STATUS_ON)->inRandomOrder()->select(['title', 'intro', 'thumb', 'id'])->first();
if($product){
ProjectServer::useProject($project_id);
... ...