1
我发短信给移动使用twilio短信服务在PHP http://s.test.com?v=ccc,但在短信中它只显示http://s.test.com作为超链接丢失?v=ccc
部分。我怎样才能让它显示这整个http://s.test.com?v=ccc作为短信的超链接?PHP:如何显示短信完整的超链接
这是我用来发送短信代码:
function sendText($number, $id, $product_domain)
{
$short_url = 'http://s.'. $product_domain .'.com?v='.$this->toBase($id);
$client = new Services_Twilio(TWILIOSID, TWILIOTOKEN);
$client->account->messages->sendMessage("123-4567-9870", $number,
"Your Scope is complete ".$short_url." Customer Service 877.697.2673 . To disable this service reply with \"stop\"");
}
这$short_url
会http://s.test.com?v=ccc
这很奇怪,因为你的代码本身似乎很好。如果你找不到正确的答案,你可能会考虑将URL重写为'http:// s.test.com/ccc',因为问题可能是由问号引起的。这样做的第二个优点是你可以安全地输入两位数字。 –
感谢您的答复,我会考虑这样做,如果我没有找到任何其他解决方案 – Haroon