Commit 44b0c010 authored by luhongguang's avatar luhongguang

update:es sort调整

parent 6726b544
......@@ -184,7 +184,9 @@ class ElasticGoodService
["total_amount_sold" => "desc"],
["price_sort" => "asc"],
];
$sort = array_merge($sortList[$sortType], $subjectSort);
$sortInit = empty($sortList[$sortType - 1]) ? $sortList[0] : $sortList[$sortType - 1];
$sort = array_merge($sortInit, $subjectSort);
$data = [
"sort" => $sort,
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment