在echo $echoStr前面加上ob_clean() 清一下缓存即可
//验证url token public function valid(){ $echoStr = $_GET["echostr"];
if($this->checkSignature()){ ob_clean(); echo $echoStr; exit; }}