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; }