/**
  * 模板替换
  * @param string $str
  * @param int $pid
  * @param string $type
  */
 private function rep_platform($str, $pid, $type)
 {
     $wt = new WTOpen();
     $ret = $wt->get($pid);
     $str = str_ireplace('{platform}', $ret['name'], $str);
     $str = str_ireplace('{weibo}', Config::get_name($type), $str);
     $str = str_ireplace('{pid}', $pid, $str);
     $str = str_ireplace('{type}', $type, $str);
     return $str;
 }