From 00d197d6dca3d70b4609d39f1d24a0b8d41b57b5 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 22 May 2025 16:00:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:http=E5=AE=89=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 1 + android/app/src/main/res/xml/network_security_config.xml | 6 ++++++ lib/common/values/constants.dart | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 android/app/src/main/res/xml/network_security_config.xml diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f939aa2..f768335 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -22,6 +22,7 @@ android:name="${applicationName}" android:icon="@mipmap/ic_launcher" android:label="智慧后勤" + android:networkSecurityConfig="@xml/network_security_config" android:requestLegacyExternalStorage="true"> + + + stgl.pj.gov.cn + + \ No newline at end of file diff --git a/lib/common/values/constants.dart b/lib/common/values/constants.dart index 059717c..bbbd4d5 100644 --- a/lib/common/values/constants.dart +++ b/lib/common/values/constants.dart @@ -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;