获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- 调用小程序授权接口很慢,在小程序上获取了code,调用授权接口,返回openid,可以怎么提速?
$code_url = 'https://api.weixin.qq.com/sns/jscode2session?appid=appid&secret=secret&js_code='.$code.'&grant_type=authorization_code'; $result = curl_get($code_url); if (!isset($result['openid']) || $result['openid'] == ''){ return ['code' => "0", 'msg' => '用户信息获取失败,请重新获取']; } else { return $result; } 调用接口如上,返回时间"wechat_ms":5.378,域名及ip已经配置了,使用政务云服务器,host指定了api.weixin.qq.com host 服务器 curl -o /dev/null -s -w "time_total: %{time_total}\n" \ "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=xxx&secret=xxx" curl很快,也就0.3秒,有没有办法提速?或者出现这种情况的原因是什么呢?
2025-12-26 - 为什么我的足迹没助推券?
[图片] 为什么都没有曝光券?没助推券?
2025-11-04 - 网页授权域名添加不了,提示域名访问不了,是怎么回事呢?
[图片] [图片] 域名已经备案,而且可以打开,为何不能添加呢? [图片]
2024-08-22