Token校验失败,请检查确认?
public function msg()
{
$signature = $_GET["signature"];
$nonce = $_GET["nonce"];
$timestamp = $_GET["timestamp"];
$arr = array('abc',$timestamp,$nonce);
sort($arr, SORT_STRING);
$str = implode("",$arr);
$str = sha1($str);
if($str == $signature){
return true;
}else{
echo false;
}
}