This commit is contained in:
aozhiwei 2023-08-08 16:15:03 +08:00
parent 72d815ac4d
commit abe38eed91

View File

@ -85,7 +85,8 @@ class MallController extends BaseAuthedController {
$arrPriceFilter = explode('|', $priceFilters);
$priceLow = $arrPriceFilter[0];
$priceHigh = $arrPriceFilter[1];
return "AND (price >= ${priceLow} AND price <= ${priceHigh})";
return " AND (length(price) >= length('${priceLow}') AND length(price) <= length('${priceHigh}')) "
. " AND (price >= '${priceLow}' AND price <= '${priceHigh}') ";
}
),
)