fix some handling
This commit is contained in:
@@ -222,6 +222,14 @@ class SingleOrderController extends Controller
|
||||
$response['bonus_gift'] = $this->bonusGift($customer, $referrer);
|
||||
}
|
||||
}
|
||||
if ($customer && isset($data['order'])) {
|
||||
try {
|
||||
app(ReferralGiftService::class)->tryGiveOnFirstOrder($customer);
|
||||
} catch (\Throwable $e) {
|
||||
report($e);
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($data['order'])) {
|
||||
try {
|
||||
$response['Notifications'] = $this->sendTransactionNotifications($data, $transactionType);
|
||||
|
||||
Reference in New Issue
Block a user