From 12c9f45978124fd21d7f066f7f1755e724712216 Mon Sep 17 00:00:00 2001 From: adonis Date: Mon, 1 Jun 2026 16:54:50 +0330 Subject: [PATCH] fix register --- app/Http/Controllers/Controller.php | 4 ++-- app/Http/Controllers/Site/ReportController.php | 4 ++-- app/Services/MontzarService.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php index f45a455..1fa416d 100644 --- a/app/Http/Controllers/Controller.php +++ b/app/Http/Controllers/Controller.php @@ -126,9 +126,9 @@ class Controller extends BaseController $response = Http::withOptions([ 'curl' => [ // اجبار به استفاده از IPv4 و جلوگیری از تاخیر IPv6 - CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, + \CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4, // افزایش سرعت برقراری ارتباط TCP - CURLOPT_TCP_FASTOPEN => 1, + \CURLOPT_TCP_FASTOPEN => 1, ] ])->withoutVerifying()->get($endpoint, [ 'FROM' => $credentials['sms']['sender'], diff --git a/app/Http/Controllers/Site/ReportController.php b/app/Http/Controllers/Site/ReportController.php index 4289a87..770ddef 100644 --- a/app/Http/Controllers/Site/ReportController.php +++ b/app/Http/Controllers/Site/ReportController.php @@ -306,8 +306,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 8cdb8ec..fe68a11 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)