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