|
...
|
...
|
@@ -268,10 +268,10 @@ class ProductController extends BaseController |
|
|
|
$this->response('关键词不能为空', Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
$project_id = ProjectAiSetting::where('mch_id', $mch_id)->where('key', $key)->value('project_id');
|
|
|
|
if($project_id){
|
|
|
|
if(!$project_id){
|
|
|
|
$this->response('项目不存在', Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ProjectServer::useProject($project_id);
|
|
|
|
|
|
|
|
$product = Product::whereFullText('title', $keyword)->inRandomOrder()->select(['title', 'intro', 'thumb'])->first();
|
...
|
...
|
|