semd SMS fix

This commit is contained in:
CHIEFSOFT\ameye
2025-01-12 15:29:54 -05:00
parent 2f258c7d0e
commit c7f9f211c2
+2 -2
View File
@@ -137,7 +137,7 @@ abstract class BaseController extends Controller
$password = substr( str_shuffle(sha1(rand() . time()) . $chars ), 0, $length );
return $password;
}
public function sendSMS($to_number, $sms_message):string{
public function sendSMS_twillo($to_number, $sms_message):string{
// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
@@ -155,7 +155,7 @@ abstract class BaseController extends Controller
);
return $message->body;
}
public function sendSMS_OLD($to_number, $sms_message):string{
public function sendSMS($to_number, $sms_message):string{
$API_KEY ="TLYsgMTZBeasJHHimcWXG1QPHmjH7FPwnbKwiqTEwGCu6TrK0v13hCn8N6SYZp";
$BASE_URL = "https://api.ng.termii.com";
log_message('error', "SMS TO API---=>". $to_number);