https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/message-push.htmlhttps://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html
private function checkSignature()
{
$signature = $_GET["signature"];
$timestamp = $_GET["timestamp"];
$nonce = $_GET["nonce"];
$echostr = $_GET["echostr"];
$token = TOKEN;
$tmpArr = array($token, $timestamp, $nonce);
sort($tmpArr, SORT_STRING);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if ($tmpStr == $signature ) {
return $echostr;
} else {
return false;
}
}
这边排查一下