suchen

Heim  >  Fragen und Antworten  >  Hauptteil

Die Konfigurationsinformationen zur offiziellen WeChat-Kontoschnittstelle sind fehlgeschlagen

QQ截图20190215085511.png


<?php

define('TOKEN','peter');

$signatur=$_GET['signature']; //Verschlüsselte Signatur

$timestamp=$_GET[' timestamp'];//Zeitstempel

$nonce=$_GET['nonce'];//Zufallszahl

$echostr=$_GET['echostr'];//Zufällige Zeichenfolge

//Array sortieren

$arr=[$timestamp,$nonce,TOKEN];

sort($arr,SORT_STRING);

$str=sha1(implode($arr));

//Diese Anfrage kommt von WeChat

if ($signature==$str){

echo $echostr;

}

?>


yangyangyangyang2207 Tage vor1349

Antworte allen(2)Ich werde antworten

  • 明日边缘

    明日边缘2019-03-01 16:10:53

    代码没写全

    Antwort
    0
  • StornierenAntwort