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',