@千夜微信关联小程序,数据回调URL 报:服务商未响应请求。但接口调试工具测试通过了的,怎么回事呢?
//校验接口的代码 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"); } }