This commit is contained in:
aozhiwei 2022-01-29 14:54:03 +08:00
parent bb02833ea9
commit 71eea66d01

View File

@ -102,8 +102,8 @@ class MarketController extends BaseController {
array(
'name' => $currencyMeta['name'],
'original_price' => $meta['price'],
'discount_price' => $meta['discount'] > 0 ?
$meta['price'] * ($meta['discount'] / 100) : $meta['price'],
'discount_price' => $meta['discount'] * 100 > 0 ?
$meta['price'] * $meta['discount'] : $meta['price'],
'discount_rate' => $meta['discount'],
'contract_address' => $currencyMeta['address'],
)