Skip to content

Commit

Permalink
fix: fix missing price data
Browse files Browse the repository at this point in the history
  • Loading branch information
insthync committed Dec 25, 2022
1 parent e61282c commit 34e6238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/FortuneWheel.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ function SpinFortuneWheel($fortuneWheelDataId)
$deleteItemIds = array();
$updateCurrencies = array();
$requirementType = $fortuneWheel['requirementType'];
$price = $fortuneWheel['price'];
if ($requirementType == ELootboxRequirementType::SoftCurrency && $price > $softCurrency->amount) {
$output['error'] = 'ERROR_NOT_ENOUGH_SOFT_CURRENCY';
} else if ($requirementType == ELootboxRequirementType::HardCurrency && $price > $hardCurrency->amount) {
Expand Down

0 comments on commit 34e6238

Please sign in to comment.