Update: 2026-06-23 18:44:45
This commit is contained in:
@@ -92,27 +92,27 @@ switch (strtolower($country)) {
|
|||||||
case 'egypt':
|
case 'egypt':
|
||||||
$sentSuccessfully = sendKazumiSms($receiver, $otp);
|
$sentSuccessfully = sendKazumiSms($receiver, $otp);
|
||||||
if (!$sentSuccessfully) {
|
if (!$sentSuccessfully) {
|
||||||
error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Intaleq OTP WhatsApp.");
|
error_log("⚠️ [Egypt OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP.");
|
||||||
$sentSuccessfully = sendIntaleqOtp($receiver, $otp, 'whatsapp');
|
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'syria':
|
case 'syria':
|
||||||
// Syria uses Intaleq app_key for whatsapp/sms
|
// Syria uses Nabeh
|
||||||
$sentSuccessfully = sendIntaleqOtp($receiver, $otp, $method ?: 'whatsapp');
|
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'jordan':
|
case 'jordan':
|
||||||
// Jordan uses Intaleq app_key for whatsapp/sms
|
// Jordan uses Nabeh
|
||||||
$sentSuccessfully = sendIntaleqOtp($receiver, $otp, $method ?: 'whatsapp');
|
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Default fallback to Kazumi SMS
|
// Default fallback to Kazumi SMS
|
||||||
$sentSuccessfully = sendKazumiSms($receiver, $otp);
|
$sentSuccessfully = sendKazumiSms($receiver, $otp);
|
||||||
if (!$sentSuccessfully) {
|
if (!$sentSuccessfully) {
|
||||||
error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Intaleq OTP WhatsApp.");
|
error_log("⚠️ [Default OTP Failover] Kazumi SMS failed. Falling back to Nabeh OTP.");
|
||||||
$sentSuccessfully = sendIntaleqOtp($receiver, $otp, 'whatsapp');
|
$sentSuccessfully = sendNabehOtp($receiver, $otp, 'text');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user