fix register 2
This commit is contained in:
@@ -123,14 +123,7 @@ class Controller extends BaseController
|
|||||||
//SMS
|
//SMS
|
||||||
if ($send_sms or $force_method=="sms") {
|
if ($send_sms or $force_method=="sms") {
|
||||||
$endpoint = "https://www.0098sms.com/sendsmslink.aspx";
|
$endpoint = "https://www.0098sms.com/sendsmslink.aspx";
|
||||||
$response = Http::withOptions([
|
$response = Http::withoutVerifying()->get($endpoint, [
|
||||||
'curl' => [
|
|
||||||
// اجبار به استفاده از IPv4 و جلوگیری از تاخیر IPv6
|
|
||||||
\CURLOPT_IPRESOLVE => \CURL_IPRESOLVE_V4,
|
|
||||||
// افزایش سرعت برقراری ارتباط TCP
|
|
||||||
\CURLOPT_TCP_FASTOPEN => 1,
|
|
||||||
]
|
|
||||||
])->withoutVerifying()->get($endpoint, [
|
|
||||||
'FROM' => $credentials['sms']['sender'],
|
'FROM' => $credentials['sms']['sender'],
|
||||||
'TO' => $to,
|
'TO' => $to,
|
||||||
'TEXT' => trim($msg),
|
'TEXT' => trim($msg),
|
||||||
|
|||||||
Reference in New Issue
Block a user