NASER optimize login in hamkar app
This commit is contained in:
+8
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user