This commit is contained in:
aozhiwei 2022-01-29 15:57:18 +08:00
parent a783267af6
commit f09cf4c8b7

View File

@ -182,7 +182,7 @@ class MarketController extends BaseController {
}
$originalPrice = $goodsMeta['price'] * pow(10, CURRENCY_DECIMALS);
$discountPrice = $goodsMeta['discount'] * 100 > 0 ?
$originalPrice * $meta['discount'] : $originalPrice;
$originalPrice * $goodsMeta['discount'] : $originalPrice;
if (!$discountPrice || $price != $discountPrice) {
myself()->_rspErr(500, 'price error');
return;