master
ELF 4 years ago
parent 82bc905b45
commit d3e4c40d44

@ -15,7 +15,7 @@ class GameRebateService
$sendResult = ''; $sendResult = '';
if ($gift['game_currency'] > 0) { if ($gift['game_currency'] > 0) {
$result = $this->sendGold($order, $gift['game_currency']); $result = $this->sendGold($order, $gift['game_currency']);
if ($result['status']) { if (!$result['status']) {
$hasError = true; $hasError = true;
} }
$sendResult .= ($result['message'] ?? '') . ';'; $sendResult .= ($result['message'] ?? '') . ';';
@ -23,7 +23,7 @@ class GameRebateService
$giftItems = json_decode($gift['gifts'], true); $giftItems = json_decode($gift['gifts'], true);
foreach ($giftItems as $giftItem) { foreach ($giftItems as $giftItem) {
$result = $this->sendGift($order, $giftItem); $result = $this->sendGift($order, $giftItem);
if ($result['status']) { if (!$result['status']) {
$hasError = true; $hasError = true;
} }
$sendResult .= ($result['message'] ?? '') . ';'; $sendResult .= ($result['message'] ?? '') . ';';

Loading…
Cancel
Save