fix:远程下载bug

This commit is contained in:
dzc committed 2026-02-04 13:22:59 +08:00
1 parent 8b2d575959
commit 4a7a6e5c6c
4 files changed
+20 -11

No files matched your search

+6 -1
View File
@@ -24,4 +24,9 @@
# -keep class io.flutter.plugins.** { *; }
-keep class com.arcsoft.face.** { *; }
-keep class com.iflytek.**{*;}
-keepattributes Signature
-keepattributes Signature
# 2026-01-31(添加后台下载报错添加)
-keepattributes Annotation
-keep class com.bbflight.background_downloader.** { *; }
-keep class com.google.gson.** { *; }
-keep class kotlin.** { *; }
+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.104:9999';
// static const apiUrl = 'http://192.168.101.104:9999';
/// 静态资源 url
static const ossUrl = apiUrl;
@@ -111,10 +111,13 @@ class VersionManageController extends GetxController {
);
final result = await FileDownloader().download(
task,
onProgress: (progress) => EasyLoading.showProgress(
progress,
status: "(${(progress * 100).toStringAsFixed(2)}%)下载中...",
),
onProgress: (progress) {
logger.d("|$_tag|下载进度:$progress");
EasyLoading.showProgress(
progress,
status: "(${(progress * 100).toStringAsFixed(2)}%)下载中...",
);
},
onStatus: (status) => {logger.d("|$_tag|下载状态:$status")},
);
if (result.status == TaskStatus.complete) {
@@ -20,10 +20,11 @@ Future<void> _bindServiceDialog(BuildContext context, SysSetting sys) async {
// uniqueCodeC.text = "1894303392833716226";
// 正式环境-测试
// uniqueCodeC.text = "1896157295523049473";
// 正式环境-新县府02
// uniqueCodeC.text = "1887466308336488450";
// 测试环境-测试设备-(食堂主要测试)
uniqueCodeC.text = "1877592554489143298";
// 正式环境-新县府02-主要测试
uniqueCodeC.text = "1887466308336488450";
/// 测试环境-测试设备-(食堂主要测试)
// uniqueCodeC.text = "1877592554489143298";
// 测试少年宫测试
// uniqueCodeC.text = "1927932460185784321";
// 测试环境-食堂-浦阳