问题模块 框架类型 操作时间 AppID
管理后台 微信小程序 02-04 wx252fe571b37cbc67
public function index(){
$token = 'token';
$timestamp = $_GET["timestamp"];
$nonce = $_GET["nonce"];
$signature = $_GET["signature"];
$echostr = $_GET["echostr"];
$tmpArr = array($token, $timestamp, $nonce);
sort($tmpArr);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if( $tmpStr == $signature ){
echo $echostr;
}else{
echo false;
}
}