Update: 2026-06-24 16:04:53

This commit is contained in:
Hamza-Ayed
2026-06-24 16:04:53 +03:00
parent 3b2c2a86c6
commit 4894d566a0
3 changed files with 37 additions and 8 deletions

View File

@@ -92,19 +92,19 @@ switch (strtolower($country)) {
case 'egypt':
$sentSuccessfully = sendKazumiSms($receiver, $otp);
if (!$sentSuccessfully) {
error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP.");
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Intaleq OTP WhatsApp.");
$sentSuccessfully = sendIntaleqOtp($receiver, $otp, 'whatsapp');
}
break;
case 'syria':
// Syria uses Nabeh
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
break;
case 'jordan':
// Jordan uses Nabeh
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
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, 'text');
$sentSuccessfully = sendNabehOtp($receiver, $otp, $method, $user_type);
}
break;
}