WeChat official account interface configuration information failed
![1550192203214233.png QQ截图20190215085511.png](https://img.php.cn/upload/image/621/949/159/1550192203214233.png)
##<?php
define('TOKEN','peter');
$signature =$_GET['signature']; //Encrypted signature
$timestamp=$_GET['timestamp'];//Timestamp
$nonce=$_GET['nonce'] ;//Random number
$echostr=$_GET['echostr'];//Random string
//Sort the array
$arr=[$timestamp ,$nonce,TOKEN];
sort($arr,SORT_STRING);
$str=sha1(implode($arr));
//This request is From WeChat
if($signature==$str){
echo $echostr;
}
?>