WeChat official account interface configuration information failed
yangyang
yangyang 2019-02-15 08:57:01
0
2
1295

QQ截图20190215085511.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;

}

?>


yangyang
yangyang

reply all(1)
明日边缘

Not all the code is written

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template