1
This commit is contained in:
parent
eaf341c031
commit
487c74b4d6
@ -98,7 +98,7 @@ class MarketController extends BaseController {
|
||||
}
|
||||
$originalPrice = $meta['price'] * pow(10, CURRENCY_DECIMALS);
|
||||
$discountPrice = $meta['discount'] * 100 > 0 ?
|
||||
$originalPrice * $meta['discount'] : $meta['price'];
|
||||
$originalPrice * $meta['discount'] : $originalPrice;
|
||||
$saleBox = array(
|
||||
'box_id' => $boxId,
|
||||
'item_id' => $meta['item_id'],
|
||||
@ -178,6 +178,13 @@ class MarketController extends BaseController {
|
||||
myself()->_rspErr(500, 'not white list user');
|
||||
return;
|
||||
}
|
||||
$originalPrice = $goodsMeta['price'] * pow(10, CURRENCY_DECIMALS);
|
||||
$discountPrice = $goodsMeta['discount'] * 100 > 0 ?
|
||||
$originalPrice * $meta['discount'] : $originalPrice;
|
||||
if (!$discountPrice || $price != $discountPrice) {
|
||||
myself()->_rspErr(500, 'price error');
|
||||
return;
|
||||
}
|
||||
$itemMeta = mt\Item::get($itemId);
|
||||
if (!$itemMeta ||
|
||||
empty($itemMeta['nft_image_id']) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user