From 853d4821cd8c9680e87619a15206b2aff69169d7 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 11 Feb 2022 17:33:06 +0800 Subject: [PATCH] 1 --- webapp/controller/MarketController.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 045906c7..f0caedbb 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -241,8 +241,7 @@ class MarketController extends BaseController { $originalPrice * $goodsMeta['discount'] : $originalPrice; $discountPrice .= PRICE_PAD; - error_log('discountPrice:' . $discountPrice . ' price:' . $price . ' originPrice:' . $originalPrice); - if (!$discountPrice || $price != $discountPrice) { + if (!$discountPrice || strcmp($price, $discountPrice) == 0) { myself()->_rspErr(500, 'price error'); return; }