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