相关搜索:
坚果
diff --git a/service/Application/Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php b/service/Application/Runtime/Temp/0ece5e1f7d67f6940df0fdd2e23f8de3.php
old mode 100755
new mode 100644
diff --git a/service/Application/Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php b/service/Application/Runtime/Temp/0f93a90c5fd846c3021a94cae907eb94.php
old mode 100755
new mode 100644
diff --git a/service/Application/Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php b/service/Application/Runtime/Temp/38432eb7369925b9a826f2b9f64e2262.php
old mode 100755
new mode 100644
diff --git a/service/Application/Service/SearchService.class.php b/service/Application/Service/SearchService.class.php
index 8316cf892..2e278316e 100644
--- a/service/Application/Service/SearchService.class.php
+++ b/service/Application/Service/SearchService.class.php
@@ -80,7 +80,7 @@ class SearchService
{
$category_ids = GoodsService::GoodsCategoryItemsIds(['category_id'=>$params['category_id']]);
$category_ids[] = $params['category_id'];
- $where['gci.id'] = ['in', $category_ids];
+ $where['gci.category_id'] = ['in', $category_ids];
}
// 筛选价格
diff --git a/service/Public/Home/Default/Js/Search.js b/service/Public/Home/Default/Js/Search.js
index 566371b92..36b5b50f6 100755
--- a/service/Public/Home/Default/Js/Search.js
+++ b/service/Public/Home/Default/Js/Search.js
@@ -144,6 +144,7 @@ $(function()
{
// 请求参数处理
var data = {
+ category_id: $('.search-content').data('category-id') || 0,
keywords: $('#search-input').val() || '',
page: page || parseInt($('.search-pages-submit').attr('data-page')) || 1,
order_by_field: $('.sort-nav li.active').attr('data-field') || 'default',