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