feat:http安全

This commit is contained in:
dzc committed 2025-05-22 16:00:15 +08:00
1 parent 3ceaacccd9
commit 00d197d6dc
3 files changed
+9 -2

No files matched your search

+1
View File
@@ -22,6 +22,7 @@
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:label="智慧后勤"
android:networkSecurityConfig="@xml/network_security_config"
android:requestLegacyExternalStorage="true">
<activity
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">stgl.pj.gov.cn</domain>
</domain-config>
</network-security-config>
+2 -2
View File
@@ -10,9 +10,9 @@ class Constants {
static const pwdEncKey = 'pigxpigxpigxpigx';
/// 服务 url
static const apiUrl = 'https://stgl.pj.gov.cn/api';
// static const apiUrl = 'https://stgl.pj.gov.cn/api';
// static const apiUrl = 'http://192.168.101.125:9999';
static const apiUrl = 'http://192.168.101.125:9999';
/// 静态资源 url
static const ossUrl = apiUrl;