找到原因了 ["content"]=> string(129) "{"errcode":40164,"errmsg":"invalid ip 82.156.203.19 ipv6 ::ffff:82.156.203.19, not in whitelist rid: 60b77799-506ddef7-717c2cff"}" ["meta"]=> string(273) "HTTP/1.0 200 OK Connection: close Content-Type: application/json; encoding=utf-8 Date: Wed, 02 Jun 2021 12:20:41 GMT Content-Length: 129 {"errcode":40164,"errmsg":"invalid ip 82.156.203.19 ipv6 ::ffff:82.156.203.19, not in whitelist rid: 60b77799-506ddef7-717c2cff"}"
请稍后重试!错误详情: Received HTTP/0.9 when 调用微信接口出现?$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$this->account['key']}&secret={$this->account['secret']}"; $content = ihttp_get($url); if(is_error($content)) { return error('-1', '获取微信公众号授权失败, 请稍后重试!错误详情: ' . $content['message']); } function ihttp_request($url, $post = '', $extra = array(), $timeout = 60) { if (function_exists('curl_init') && function_exists('curl_exec') && $timeout > 0) { $ch = ihttp_build_curl($url, $post, $extra, $timeout); if (is_error($ch)) { return $ch; } $data = curl_exec($ch); $status = curl_getinfo($ch); $errno = curl_errno($ch); $error = curl_error($ch); curl_close($ch); if ($errno || empty($data)) { return error($errno, $error); } else { return ihttp_response_parse($data); } } $urlset = ihttp_parse_url($url, true); if (!empty($urlset['ip'])) { $urlset['host'] = $urlset['ip']; } $body = ihttp_build_httpbody($url, $post, $extra); if ($urlset['scheme'] == 'https') { $fp = ihttp_socketopen('ssl://' . $urlset['host'], $urlset['port'], $errno, $error); } else { $fp = ihttp_socketopen($urlset['host'], $urlset['port'], $errno, $error); } stream_set_blocking($fp, $timeout > 0 ? true : false); stream_set_timeout($fp, ini_get('default_socket_timeout')); if (!$fp) { return error(1, $error); } else { fwrite($fp, $body); $content = ''; if($timeout > 0) { while (!feof($fp)) { $content .= fgets($fp, 512); } } fclose($fp); return ihttp_response_parse($content, true); } } function ihttp_get($url) { return ihttp_request($url); }
2021-06-03这个是小程序的 appid 和app secretsecret 。 这个小程序关联的 公众号, 这个用户也关注了公众号, 请求的是这个地址 https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token array(6) { ["code"]=> string(3) "200" ["status"]=> string(2) "OK" ["responseline"]=> string(15) "HTTP/1.0 200 OK" ["headers"]=> array(4) { ["Connection"]=> string(5) "close" ["Content-Type"]=> string(32) "application/json; encoding=utf-8" ["Date"]=> string(29) "Mon, 26 Apr 2021 01:45:30 GMT" ["Content-Length"]=> string(2) "75" } ["content"]=> string(75) "{"errcode":40003,"errmsg":"invalid openid rid: 60861b3a-521b1938-252bdf39"}" ["meta"]=> string(218) "HTTP/1.0 200 OK Connection: close Content-Type: application/json; encoding=utf-8 Date: Mon, 26 Apr 2021 01:45:30 GMT Content-Length: 75 {"errcode":40003,"errmsg":"invalid openid rid: 60861b3a-521b1938-252bdf39"}" }
微信订阅消息推送 ?object(stdClass)#1 (2) { ["errcode"]=> int(40003) ["errmsg"]=> string(46) "invalid openid rid: 6085007f-63ab2011-03755853" }
2021-04-26这是微信开发工具看到的效果[图片][图片][图片] 但是使用真机测试 出现了这样的情况 这是哪里的错误[图片][图片] 找到原因了是因为https过期了
我使用微信小程序工具打开程序没有问题 为啥审核不通过呀?[图片][图片][图片]
2020-10-28我刚才试试增加www增加不上去,现在增加了,估计是我的网络问题 谢谢
request合法域名问题?[图片][图片][图片][图片][图片]
2020-02-14