微信公众号服务器配置token验证失败
发布于 4 年前 作者 leichao 14337 次浏览 来自 官方Issues

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 回复

运行的程序后缀要加上去,醉了

xxxxxx.com/index.php

回到顶部