fix: 关闭App端SSL校验以兼容老PDA
This commit is contained in:
@@ -34,6 +34,10 @@ const install = (Vue, vm) => {
|
||||
data: req.data,
|
||||
header: req.header
|
||||
}, null, 2));
|
||||
// #ifdef APP-PLUS
|
||||
// Android 5.x 等老 PDA 不信任 Let's Encrypt 新证书链,关闭校验证书
|
||||
req.sslVerify = false;
|
||||
// #endif
|
||||
if (!req.header){
|
||||
req.header = [];
|
||||
}
|
||||
@@ -176,6 +180,9 @@ const install = (Vue, vm) => {
|
||||
uni.request({
|
||||
url,
|
||||
method: 'PUT',
|
||||
// #ifdef APP-PLUS
|
||||
sslVerify: false,
|
||||
// #endif
|
||||
header: {
|
||||
...header,
|
||||
'Platform': 2,
|
||||
|
||||
Reference in New Issue
Block a user