Update: 2026-05-06 03:13:03
This commit is contained in:
@@ -16,7 +16,8 @@ class WhatsAppProxyService
|
|||||||
//"https://botmasa.intaleq.xyz/send", // mayar
|
//"https://botmasa.intaleq.xyz/send", // mayar
|
||||||
//"https://botmasa2.intaleq.xyz/send", // shad
|
//"https://botmasa2.intaleq.xyz/send", // shad
|
||||||
//"https://bootride.intaleq.xyz/send", // ramat bus
|
//"https://bootride.intaleq.xyz/send", // ramat bus
|
||||||
"https://bot5.intaleq.xyz/send", // shahd
|
"https://bot3.intaleq.xyz/send", // shahd
|
||||||
|
"https://bot5.intaleq.xyz/send", // bot5 from postman
|
||||||
//"https://whatsapp.tripz-egypt.com/send" // tripz
|
//"https://whatsapp.tripz-egypt.com/send" // tripz
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -67,9 +68,8 @@ class WhatsAppProxyService
|
|||||||
|
|
||||||
$responseData = json_decode($response, true);
|
$responseData = json_decode($response, true);
|
||||||
|
|
||||||
// التحقق من حالة الرد (يمكنك تخصيصه حسب هيكل رد البوت الخاص بك)
|
if (!isset($responseData['success']) || $responseData['success'] !== true) {
|
||||||
if (isset($responseData['error']) && $responseData['error']) {
|
error_log("[WhatsAppProxyService] API Error on $url: " . $response);
|
||||||
error_log("[WhatsAppProxyService] API Error on $url: " . json_encode($responseData));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -82,8 +82,8 @@ $message = "رمز التحقق لتطبيق مُصادَق:\n*{$otp}*\n\nصال
|
|||||||
$smsSent = $whatsappService->sendMessage($phone, $message);
|
$smsSent = $whatsappService->sendMessage($phone, $message);
|
||||||
|
|
||||||
if (!$smsSent) {
|
if (!$smsSent) {
|
||||||
error_log("WARN: Failed to send OTP WhatsApp to phone hash: {$phoneHash}");
|
error_log("ERROR: Failed to send OTP WhatsApp to phone: {$phone}");
|
||||||
// Still return success to not reveal info, but log the issue
|
json_error('عذراً، فشل في إرسال رمز التحقق. الرجاء التأكد من صحة رقم الواتساب الخاص بك والمحاولة مرة أخرى.', 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log for development (REMOVE IN PRODUCTION!)
|
// Log for development (REMOVE IN PRODUCTION!)
|
||||||
|
|||||||
Reference in New Issue
Block a user