Update: 2026-06-24 16:18:03
This commit is contained in:
@@ -99,12 +99,12 @@ switch (strtolower($country)) {
|
||||
|
||||
case 'syria':
|
||||
// Syria uses Nabeh
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
|
||||
break;
|
||||
|
||||
case 'jordan':
|
||||
// Jordan uses Nabeh
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -112,7 +112,7 @@ switch (strtolower($country)) {
|
||||
$sentSuccessfully = sendKazumiSms($receiver, $otp);
|
||||
if (!$sentSuccessfully) {
|
||||
error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP.");
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
|
||||
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method ?? '', $user_type ?? 'passenger');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user