Modification of Wechat public platform server configuration prompts token verification failure

the same configuration was submitted for the first time, and the configuration was submitted successfully

when you modify the configuration for the second time, you will be prompted that token verification failed

clipboard.png

<?php 
    //1.timestamp once token
    $timestamp=$_GET["timestamp"];
    $once=$_GET["once"];
    $token="yoga";
    $signature=$_GET["signature"];

    $array=array($timestamp,$once,$token);
    //sort($array);
    //
    $tmpstr=implode("",$array);
    $tmpstr=sha1($tmpstr);
    //signature
    if($tmpstr==$signature){
        echo $_GET["echostr"];
        exit();
    }
Note: it is Aliyun ip that was successfully submitted without sort sorting before. It is a useless domain name and does not need to be put on record
.

ask the master for advice


this page must be converted to UTF-8 BOM-free format.

 header('content-type:text');   //
 ob_clean();       //
 exit(htmlspecialchars($_GET['echostr']));      //echostr
Menu