From abe38eed91d67b6850023b64b0f7d807c17ceceb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Aug 2023 16:15:03 +0800 Subject: [PATCH] 1 --- webapp/controller/MallController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/MallController.class.php b/webapp/controller/MallController.class.php index 2623716c..4c94c00b 100644 --- a/webapp/controller/MallController.class.php +++ b/webapp/controller/MallController.class.php @@ -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}') "; } ), )