微信公众号服务器配置token验证失败
https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Access_Overview.html
$signature = $_GET["signature"];
$timestamp = $_GET["timestamp"];
$nonce = $_GET["nonce"];
$token = TOKEN;
$tmpArr = array($token, $timestamp, $nonce);
sort($tmpArr, SORT_STRING);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if( $tmpStr == $signature ){
return true;
}else{
return false;
}
请问按照这个配置 为什么老是 token验证失败
1 回复