|
@@ -1039,7 +1039,9 @@ class ProductMysqldb extends Service implements ProductInterface
|
|
'and',
|
|
'and',
|
|
['in', 'id', $productIds]
|
|
['in', 'id', $productIds]
|
|
];
|
|
];
|
|
-
|
|
|
|
|
|
+ $appName = Yii::$service->helper->getAppName();
|
|
|
|
+ $category_query_priceRange = Yii::$app->store->get($appName.'_catalog','category_query_priceRange');
|
|
|
|
+ //print_r($ca)
|
|
foreach ($where as $k=>$v) {
|
|
foreach ($where as $k=>$v) {
|
|
if ($k == 'price' && is_array($v)) { // 价格数据处理。
|
|
if ($k == 'price' && is_array($v)) { // 价格数据处理。
|
|
foreach ($v as $k1=>$v1) {
|
|
foreach ($v as $k1=>$v1) {
|
|
@@ -1050,7 +1052,7 @@ class ProductMysqldb extends Service implements ProductInterface
|
|
if ($k1 == '$lt') $fh = '<' ;
|
|
if ($k1 == '$lt') $fh = '<' ;
|
|
$whereArr[] = [$fh, 'price', $v1];
|
|
$whereArr[] = [$fh, 'price', $v1];
|
|
}
|
|
}
|
|
- }elseif( $k == 'color' ){
|
|
|
|
|
|
+ }elseif( strpos('colorsize',$k) !== FALSE ){
|
|
$whereArr[] = ['like','attr_group_info',$v];
|
|
$whereArr[] = ['like','attr_group_info',$v];
|
|
} else {
|
|
} else {
|
|
$whereArr[] = [$k =>$v];
|
|
$whereArr[] = [$k =>$v];
|