fixed config

main
farazdy 4 months ago
parent e5af63dc93
commit 4716945aab

@ -756,7 +756,7 @@ function cardCount()
function sendSMSText($number, $content) function sendSMSText($number, $content)
{ {
$url = 'http://rest.payamak-panel.com/api/SendSMS/SendSMS'; $url = config('app.sms_url');
$options = array( $options = array(
'content-type' => 'application/x-www-form-urlencoded', 'content-type' => 'application/x-www-form-urlencoded',
@ -797,15 +797,15 @@ function sendSMSText($number, $content)
function sendSMSText2($number, $content) function sendSMSText2($number, $content)
{ {
$url = 'http://ara11.ir:3002/api/v1/send'; $url = config('app.sms_url');
$options = array( $options = array(
'content-type' => 'application/x-www-form-urlencoded', 'content-type' => 'application/x-www-form-urlencoded',
'cache-control' => 'no-cache' 'cache-control' => 'no-cache'
); );
$fields_string = http_build_query(array( $fields_string = http_build_query(array(
'user' => 'mahyar', 'user' => config('app.sms_user'),
'password' => 'MahGold;123', 'password' => config('app.sms_pass'),
'number' => $number, 'number' => $number,
'text' => $content, 'text' => $content,
'isflash' => 'false' 'isflash' => 'false'

Loading…
Cancel
Save