//校验接口的代码
public function dataMananger()
{
$token="yuhNxLsgHL0Cmn";
$encodingAesKey="0JkQdrlbK4R1JsyqUq28tDRU7yAeYrbRFBEYAKo3Wi3";
// $suiteID="----------------------";
$suiteID="--------------------";
$WXBizMsgCrypt= new WXBizMsgCrypt($token,$encodingAesKey, $suiteID);
$sVerifyMsgSig = $_GET['msg_signature'];
$sVerifyTimeStamp = $_GET['timestamp'];
$sVerifyNonce = $_GET['nonce'];
$sVerifyEchoStr = $_GET['echostr'];
$sEchoStr = "";
$errCode = $WXBizMsgCrypt->VerifyURL($sVerifyMsgSig, $sVerifyTimeStamp, $sVerifyNonce, $sVerifyEchoStr, $sEchoStr);
if ($errCode == 0) {
var_dump($sEchoStr);
} else {
print("ERR: " . $errCode . "\n\n");
}
}
你好,麻烦提供下suiteid 数据回调url 校验的时间点这些看下