Deploy: 2026-05-22 00:22:23
This commit is contained in:
@@ -145,8 +145,12 @@ class CampaignController extends BaseController
|
||||
return;
|
||||
}
|
||||
|
||||
$gatewayUrl = getenv('WHATSAPP_GATEWAY_URL') ?: 'http://localhost:3722';
|
||||
$sendUrl = $gatewayUrl . '/api/messages/send';
|
||||
$gatewayUrl = rtrim(getenv('WHATSAPP_GATEWAY_URL') ?: 'http://localhost:3722', '/');
|
||||
if (substr($gatewayUrl, -4) === '/api') {
|
||||
$sendUrl = $gatewayUrl . '/messages/send';
|
||||
} else {
|
||||
$sendUrl = $gatewayUrl . '/api/messages/send';
|
||||
}
|
||||
|
||||
foreach ($contacts as $rawContact) {
|
||||
// Decrypt contact data
|
||||
|
||||
Reference in New Issue
Block a user