微信开发验证代码
$timestamp = $_GET['timestamp'];
$nonce =$_GET['nonce'];
$token ='weixin';
$signature = $_GET["signature"];
$tmpArr = array($timestamp,$nonce,$token);
sort($tmpArr);
$tmpStr = implode('',$tmpArr);
$tmpStr = sha1($tmpStr);
if( $tmpStr == $signature){
$echoStr= $_GET['echostr'];
echo $echoStr;
exit;
}else{
echo 'xx';
}
来自于datou:https://github.com/datou-leo/ci

浙公网安备 33010602011771号