添加whatshub工单
This commit is contained in:
Regular → Executable
+4
-4
@@ -72,16 +72,16 @@ class SplitRedirectService
|
||||
? (string) ($picked['number_type_custom'] ?? '')
|
||||
: (string) $picked->getAttr('number_type_custom');
|
||||
|
||||
$whatsAppReplyText = '';
|
||||
if ($numberType === 'whatsapp') {
|
||||
$whatsAppReplyText = SplitAutoReplyService::pickRandomLine((string) $link->getAttr('auto_reply'));
|
||||
$replyText = '';
|
||||
if (in_array($numberType, ['whatsapp', 'telegram'], true)) {
|
||||
$replyText = SplitAutoReplyService::pickRandomLine((string) $link->getAttr('auto_reply'));
|
||||
}
|
||||
|
||||
$redirectUrl = SplitFriendUrlBuilder::build(
|
||||
$numberType,
|
||||
$numberValue,
|
||||
$numberCustom,
|
||||
$whatsAppReplyText
|
||||
$replyText
|
||||
);
|
||||
if ($redirectUrl === '') {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user