fix: 关闭App端SSL校验以兼容老PDA

This commit is contained in:
2026-09-28 12:13:17 +08:00
parent 7c6c7a1b32
commit 3e936b064d
4 changed files with 32 additions and 0 deletions
+7
View File
@@ -25,6 +25,10 @@ const install = (Vue, vm) => {
console.log('request', req);
console.log('baseUrl', vm.$store.state.apiurl);
console.log('完整URL', vm.$store.state.apiurl + req.url);
// #ifdef APP-PLUS
// Android 5.x 等老 PDA 不信任 Let's Encrypt 新证书链,关闭校验证书
req.sslVerify = false;
// #endif
if (!req.header){
req.header = [];
}
@@ -163,6 +167,9 @@ const install = (Vue, vm) => {
uni.request({
url,
method: 'PUT',
// #ifdef APP-PLUS
sslVerify: false,
// #endif
header: {
...header,
'Platform': 2,
+3
View File
@@ -23,6 +23,9 @@ export function request(options) {
url: apiurl + options.url,
method: options.method || 'GET',
data: options.data,
// #ifdef APP-PLUS
sslVerify: false,
// #endif
header: {
'Platform': 2,
'Authorization': token,