Update: 2026-06-24 16:04:53
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user