标签:dsa array timestamp renzhen content 框架 html tmp def
<?php 
header("Content-type:text/html;charset=utf8");
date_default_timezone_set("RPC");
$signature = $_GET["signature"];    
  $timestamp = $_GET["timestamp"];    
 $nonce = $_GET["nonce"];     
 $echostr = $_GET["echostr"];
 
 $token = "dsadsad";
    $tmpArr = array($token, $timestamp, $nonce);    
       sort($tmpArr,SORT_STRING);    
         $tmpArr = implode( $tmpArr );    
         $tmpArr = sha1( $tmpArr );    
            
        if( $tmpArr == $signature ){    
       echo $echostr;
         }    
在TP5框架中 把此文件放到public目录文件下 命名为renzheng.php
微信公众号 验证域名为https://www.xxx.com/renzheng.php
标签:dsa array timestamp renzhen content 框架 html tmp def
原文地址:https://www.cnblogs.com/web928943/p/14850756.html