protected function buildParam()
{
$this->param = str_replace('{tel}', $this->phone, $this->param);
$this->template = str_replace('{rand}', $this->code, $this->template);
$this->param = str_replace('{message}', rawurlencode($this->template), $this->param);
if (in_array($this->type, array('auto', 'get'))) {
$this->url = parse_url($this->url);
isset($this->url['query']) and $this->url['query'] .= '&';
$this->url['query'] .= $this->param;
$url = '';
$this->url['scheme'] and $url .= $this->url['scheme'] . '://';
$this->url['host'] and $url .= $this->url['host'];
$this->url['port'] and $url .= ':' . $this->url['port'];
$this->url['path'] and $url .= $this->url['path'];
$this->url['query'] and $url .= '?' . $this->url['query'];
$this->url = $url;
unset($url);
}
}