From 81b53123b9b47c9807dce48a45cccfcc67d0ffd1 Mon Sep 17 00:00:00 2001 From: gholak tala Date: Wed, 1 Apr 2026 10:58:08 +0000 Subject: [PATCH] NASER optimize login in hamkar app --- app/Models/Cnt.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Models/Cnt.php b/app/Models/Cnt.php index 52660d0..0fa9ffc 100644 --- a/app/Models/Cnt.php +++ b/app/Models/Cnt.php @@ -23,7 +23,14 @@ class Cnt extends Model $mobile = self::where('key', 'goldir_mobile')->value('value'); $password = self::where('key', 'goldir_password')->value('value'); - $goldir = Http::post('https://gold.ir/server/auth/login', [ + $goldir = Http::withOptions([ + 'curl' => [ + CURLOPT_IPRESOLVE => CURL_IPRESOLVE_V4, + CURLOPT_TCP_FASTOPEN => 1, + ] + ]) + ->withoutVerifying() + ->post('https://gold.ir/server/auth/login', [ 'mobile' => $mobile, 'password' => $password, 'provider' => 'customer',