人人商城

demo.php 352B

1234567891011121314151617
  1. <?php
  2. $message = $this->message;
  3. function render(&$str){
  4. $str = "呵呵 {$str} 哈哈";
  5. }
  6. $ret = preg_match('/(?:userapi)(.*)/i', $this->message['content'], $matchs);
  7. if(!$ret) {
  8. return $this->respText('请输入合适的格式, "userapi+查询内容", 如: "userapi微擎"');
  9. }
  10. $word = $matchs[1];
  11. render($word);
  12. return $this->respText($word);