测试
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user