- 发布:2021-11-12 14:59
- 更新:2023-12-25 14:31
- 阅读:1896
9***@qq.com - ymy
贴个安卓的代码
-
回复 xiaozhan: class DCProxyWXHttpAdapter extends DCWXHttpAdapter {
@Override
public Request getOKRequest(OkHttpClient.Builder builder, WXRequest wxRequest, OnHttpListener onHttpListener) {
wxRequest.sslVerify = false;
builder.sslSocketFactory(SSLSocketClient.getSSLSocketFactory());
builder.hostnameVerifier(SSLSocketClient.getHostnameVerifier());
return super.getOKRequest(builder, wxRequest, onHttpListener);
}
}2024-06-20 16:14
m***@163.com (作者)
uniapp 离线打包就没办法忽略https证书校验吗
2021-11-14 16:14
DCloud_Android_ST
回复 m***@163.com: 是
2021-11-15 10:52
2***@qq.com
回复 DCloud_Android_ST: 请问这个有地方可以配置吗? 忽略host name校验,因为服务端是内网部署,只有IP
2021-12-21 10:49
2***@qq.com
回复 DCloud_Android_ST: 还有uploadFile和downloadFile也有一样的问题,会提示域名校验失败,我想仿写一个,但是找不到对应的源码实现,请问html5 plus的源码有开源吗?
2021-12-25 15:56
baiyun_rain
回复 2***@qq.com: 请教一下你们怎么解决的?
2022-09-21 13:38