token验证失败(http://1.tinywanweixin.sinaapp.com/index.php/home/Index/index)
<?php
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
public function index(){
$nonce = $_GET["nonce"];
$token = "weixin";
$timestamp = $_GET["timestamp"];
$echostr = $_GET["echostr"];
$signature = $_GET["signature"];
$tmpArr = array($nonce, $timestamp, $token);
sort($tmpArr);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if( $tmpStr == $signature )
{
echo "Yes It is";
}else{
echo "false";
}
}
public function show(){
echo "001212";
}
}