Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
apk_update
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
apk_update
Commits
59e13c94
提交
59e13c94
authored
8月 08, 2025
作者:
祁增奎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.没有新版本吐司提醒,通过外部控制是否展示;2.单日只更新一次,存储当日时间时机修改
上级
7eecc59e
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
20 行增加
和
11 行删除
+20
-11
CHANGELOG.md
CHANGELOG.md
+6
-2
carrier_version_impl.dart
...e/services/version_service/impl/carrier_version_impl.dart
+0
-2
msl_version_impl.dart
lib/core/services/version_service/impl/msl_version_impl.dart
+0
-3
pm_version_impl.dart
lib/core/services/version_service/impl/pm_version_impl.dart
+1
-2
update_dialog.dart
lib/widget/update_dialog.dart
+12
-1
pubspec.yaml
pubspec.yaml
+1
-1
没有找到文件。
CHANGELOG.md
浏览文件 @
59e13c94
...
...
@@ -4,4 +4,8 @@
## 1.0.1
*
MAINTENANCE: 增加外部控制,使用OSS模式还是普通模式
\ No newline at end of file
*
MAINTENANCE: 增加外部控制,使用OSS模式还是普通模式
## 1.0.2
*
MAINTENANCE: 1.没有新版本吐司提醒,通过外部控制是否展示;2.单日只更新一次,存储当日时间时机修改
\ No newline at end of file
lib/core/services/version_service/impl/carrier_version_impl.dart
浏览文件 @
59e13c94
...
...
@@ -36,8 +36,6 @@ class CarrierVersionImpl implements VersionService {
// 不再提示
return
null
;
}
//缓存当前时间
SpUtil
.
putString
(
Constants
.
spCurrentDay
,
current
);
if
(
result
==
null
)
{
// 无升级任务,拦截
...
...
lib/core/services/version_service/impl/msl_version_impl.dart
浏览文件 @
59e13c94
...
...
@@ -4,7 +4,6 @@ import 'package:apk_update/core/services/version_service/version_service.dart';
import
'package:flustars_flutter3/flustars_flutter3.dart'
;
import
'../../../../utils/dio_update_util.dart'
;
import
'../../../../utils/toast_util.dart'
;
import
'../../../common/constants.dart'
;
import
'../../../common/servier_api.dart'
;
...
...
@@ -35,8 +34,6 @@ class MSLVersionImpl implements VersionService {
// 不再提示
return
null
;
}
//缓存当前时间
SpUtil
.
putString
(
Constants
.
spCurrentDay
,
current
);
if
(
result
==
null
)
{
// 无升级任务,拦截
...
...
lib/core/services/version_service/impl/pm_version_impl.dart
浏览文件 @
59e13c94
...
...
@@ -32,8 +32,7 @@ class PMVersionImpl implements VersionService {
// 不再提示
return
null
;
}
//缓存当前时间
SpUtil
.
putString
(
Constants
.
spCurrentDay
,
current
);
var
details
=
result
?[
"detailVo"
];
// 返回升级版本信息
...
...
lib/widget/update_dialog.dart
浏览文件 @
59e13c94
import
'dart:io'
;
import
'package:apk_update/utils/image_utils.dart'
;
import
'package:flustars_flutter3/flustars_flutter3.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart'
;
import
'package:get/get.dart'
;
import
'../core/common/constants.dart'
;
/// 升级弹框(①强制升级不关闭弹框)
class
AppUpgradeDialog
extends
StatelessWidget
{
final
logic
=
Get
.
put
(
AppUpgradeDialogLogic
());
...
...
@@ -95,7 +98,15 @@ class AppUpgradeDialog extends StatelessWidget {
title:
'忽略此版本'
,
textColor:
const
Color
(
0xFF666666
),
bgColor:
Colors
.
transparent
,
onTap:
()
=>
Navigator
.
pop
(
context
),
onTap:
()
{
//缓存当前时间
String
current
=
DateUtil
.
formatDate
(
DateTime
.
now
(),
format:
Constants
.
dateFormat
);
SpUtil
.
putString
(
Constants
.
spCurrentDay
,
current
);
Navigator
.
pop
(
context
);
},
),
),
],
...
...
pubspec.yaml
浏览文件 @
59e13c94
name
:
apk_update
description
:
A new Flutter project.
version
:
1.0.
1
version
:
1.0.
2
homepage
:
environment
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论