diff --git a/app/Http/Controllers/Single/SingleOrderController.php b/app/Http/Controllers/Single/SingleOrderController.php index e31f141..5afec7a 100644 --- a/app/Http/Controllers/Single/SingleOrderController.php +++ b/app/Http/Controllers/Single/SingleOrderController.php @@ -209,7 +209,11 @@ class SingleOrderController extends Controller } } if (isset($data['order'])) { - $response['Notifications'] = $this->sendTransactionNotifications($data, $transactionType); + try { + $response['Notifications'] = $this->sendTransactionNotifications($data, $transactionType); + } catch (\Throwable $e) { + report($e); + } } return response()->json([$response, $data]); } diff --git a/app/Http/Controllers/Site/ReportController.php b/app/Http/Controllers/Site/ReportController.php index 45e473e..0f467e9 100644 --- a/app/Http/Controllers/Site/ReportController.php +++ b/app/Http/Controllers/Site/ReportController.php @@ -363,8 +363,8 @@ class ReportController extends Controller try { $taban_gohar = Http::withOptions([ 'curl' => [ - \CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4, - \CURLOPT_TCP_FASTOPEN => 1, + CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, + CURLOPT_TCP_FASTOPEN => 1, ], ]) ->withoutVerifying() diff --git a/app/Services/MontzarService.php b/app/Services/MontzarService.php index fe68a11..8cdb8ec 100644 --- a/app/Services/MontzarService.php +++ b/app/Services/MontzarService.php @@ -71,8 +71,8 @@ class MontzarService ->acceptJson() ->withOptions([ 'curl' => [ - \CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4, - \CURLOPT_TCP_FASTOPEN => 1, + CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, + CURLOPT_TCP_FASTOPEN => 1, ], ]) ->withToken($token) diff --git a/packages/rooyesh/wallet/src/interfaces/WalletInterface.php b/packages/rooyesh/wallet/src/interfaces/WalletInterface.php index 1c9e178..46de601 100644 --- a/packages/rooyesh/wallet/src/interfaces/WalletInterface.php +++ b/packages/rooyesh/wallet/src/interfaces/WalletInterface.php @@ -70,4 +70,3 @@ class WalletInterface return true; } } -