Warum ist meine Schnittstellenkonfiguration nicht erfolgreich?
遇见是最美的时光
遇见是最美的时光 2019-08-20 17:27:19
0
4
1213
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();


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

Antworte allen(2)
遇见是最美的时光

没有,

殘留の回憶

没有任何提示么?

  • Antwort 没有,开始提交了几次不行,然后放了一会提交好了,谢谢
    遇见是最美的时光 Autor 2019-08-21 10:40:37
  • Antwort 恩恩
    殘留の回憶 Autor 2019-08-21 13:13:39
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage