Why is my interface configuration unsuccessful?
遇见是最美的时光
遇见是最美的时光 2019-08-20 17:27:19
0
4
1164
function checkSignature($token) {
    $signature = !empty($_GET["signature"]) ? $_GET["signature"] : null;
    $timestamp = !empty($_GET["timestamp"]) ? $_GET["timestamp"] : null;
    $nonce = !empty($_GET["nonce"]) ? $_GET["nonce"] : null;
    $tmpArr = array($token, $timestamp, $nonce);
    sort($tmpArr, SORT_STRING);
    $tmpStr = implode($tmpArr);
    return sha1($tmpStr) == $signature;
}
 
// 微信公众后台填写的Token
$token = 'itsource';
// 如果验证正确,则返回参数echostr的内容,否则终止执行
if(checkSignature($token)) {
    echo $_GET['echostr'];
}
exit();


遇见是最美的时光
遇见是最美的时光

reply all(2)
遇见是最美的时光

No,

殘留の回憶

No hint?

  • reply No, I submitted it a few times at first but it didn't work, then I left it for a while and submitted it, thank you.
    遇见是最美的时光 author 2019-08-21 10:40:37
  • reply eh eh
    殘留の回憶 author 2019-08-21 13:13:39
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template