This commit is contained in:
liu
2026-09-01 11:07:00 +08:00
parent 9c59f3bc99
commit 95ea0714ad
4 changed files with 25 additions and 6 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ class WechatMiniService
throw new RepositoryException('微信小程序未配置 AppID/Secret,请联系管理员');
}
$result = Http::timeout(10)->get('https://api.weixin.qq.com/sns/jscode2session', [
$result = Http::timeout(10)->withOptions([
'verify' => false, // 禁用 SSL 证书验证
])->get('https://api.weixin.qq.com/sns/jscode2session', [
'appid' => $appid,
'secret' => $secret,
'js_code' => $code,