|
@@ -33,6 +33,7 @@ class UpgradeDialog extends StatelessWidget {
|
33
|
33
|
UpgradeService.getName(path);
|
34
|
34
|
// 拆分文件名
|
35
|
35
|
var apkName = UpgradeService.getName(path);
|
|
36
|
+ logger.d('path:$path');
|
36
|
37
|
logger.d('apkName:$apkName');
|
37
|
38
|
|
38
|
39
|
var file = await UpgradeService.getApkFile(apkName);
|
|
@@ -49,7 +50,8 @@ class UpgradeDialog extends StatelessWidget {
|
49
|
50
|
(count, total) => progress.value = count / total,
|
50
|
51
|
);
|
51
|
52
|
installApk(file.path);
|
52
|
|
- } catch (_) {
|
|
53
|
+ } catch (e) {
|
|
54
|
+ logger.e(e);
|
53
|
55
|
MyNavigator.showToast('下载失败,请重试');
|
54
|
56
|
progress.value = -1;
|
55
|
57
|
}
|