Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 934ce27a
authored
2026-05-06 14:24:15 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
URL增加时间戳
1 parent
e47626d3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
lib/bloc/web_cubit.dart
lib/ui/pages/setting/setting_page.dart
lib/bloc/web_cubit.dart
View file @
934ce27
...
@@ -809,7 +809,7 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
...
@@ -809,7 +809,7 @@ class WebCubit extends Cubit<WebState> with WidgetsBindingObserver {
);
);
emit
(
state
.
copyWith
(
suggestAppUpgrade:
false
));
emit
(
state
.
copyWith
(
suggestAppUpgrade:
false
));
if
(
result
!=
null
)
{
if
(
result
!=
null
)
{
final
uri
=
Uri
.
parse
(
'https://www.banxe.cn/apps/pro.html'
);
final
uri
=
Uri
.
parse
(
'https://www.banxe.cn/apps/pro.html
?t=
${DateTime.now().millisecondsSinceEpoch}
'
);
if
(
await
canLaunchUrl
(
uri
))
{
if
(
await
canLaunchUrl
(
uri
))
{
await
launchUrl
(
uri
,
mode:
LaunchMode
.
externalApplication
);
await
launchUrl
(
uri
,
mode:
LaunchMode
.
externalApplication
);
}
}
...
...
lib/ui/pages/setting/setting_page.dart
View file @
934ce27
...
@@ -96,7 +96,10 @@ class SettingPage extends StatelessWidget {
...
@@ -96,7 +96,10 @@ class SettingPage extends StatelessWidget {
onTap:
()
{
onTap:
()
{
router
.
push
(
router
.
push
(
'/link'
,
'/link'
,
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/versions.html'
,
'title'
:
'版本记录'
},
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/versions.html?t=
${DateTime.now().millisecondsSinceEpoch}
'
,
'title'
:
'版本记录'
},
);
);
},
},
contentPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
4
),
contentPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
4
),
...
@@ -112,7 +115,7 @@ class SettingPage extends StatelessWidget {
...
@@ -112,7 +115,7 @@ class SettingPage extends StatelessWidget {
router
.
push
(
router
.
push
(
'/link'
,
'/link'
,
extra:
{
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/useragreement.html'
,
'url'
:
'https://bxr.banxiaoer.net/apps/useragreement.html
?t=
${DateTime.now().millisecondsSinceEpoch}
'
,
'title'
:
'用户协议'
'title'
:
'用户协议'
},
},
);
);
...
@@ -130,7 +133,7 @@ class SettingPage extends StatelessWidget {
...
@@ -130,7 +133,7 @@ class SettingPage extends StatelessWidget {
router
.
push
(
router
.
push
(
'/link'
,
'/link'
,
extra:
{
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/privacysettings.html'
,
'url'
:
'https://bxr.banxiaoer.net/apps/privacysettings.html
?t=
${DateTime.now().millisecondsSinceEpoch}
'
,
'title'
:
'隐私设置'
'title'
:
'隐私设置'
},
},
);
);
...
@@ -147,7 +150,10 @@ class SettingPage extends StatelessWidget {
...
@@ -147,7 +150,10 @@ class SettingPage extends StatelessWidget {
onTap:
()
{
onTap:
()
{
router
.
push
(
router
.
push
(
'/link'
,
'/link'
,
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/produce.html'
,
'title'
:
'关于'
},
extra:
{
'url'
:
'https://bxr.banxiaoer.net/apps/produce.html?t=
${DateTime.now().millisecondsSinceEpoch}
'
,
'title'
:
'关于'
},
);
);
},
},
contentPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
4
),
contentPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
4
),
...
@@ -170,7 +176,7 @@ class SettingPage extends StatelessWidget {
...
@@ -170,7 +176,7 @@ class SettingPage extends StatelessWidget {
leading:
const
Icon
(
Icons
.
download
,
size:
20
),
leading:
const
Icon
(
Icons
.
download
,
size:
20
),
title:
const
Text
(
'下载与更新'
,
style:
TextStyle
(
fontSize:
14
)),
title:
const
Text
(
'下载与更新'
,
style:
TextStyle
(
fontSize:
14
)),
onTap:
()
async
{
onTap:
()
async
{
final
uri
=
Uri
.
parse
(
'https://www.banxe.cn/apps/pro.html'
);
final
uri
=
Uri
.
parse
(
'https://www.banxe.cn/apps/pro.html
?t=
${DateTime.now().millisecondsSinceEpoch}
'
);
if
(
await
canLaunchUrl
(
uri
))
{
if
(
await
canLaunchUrl
(
uri
))
{
await
launchUrl
(
uri
,
mode:
LaunchMode
.
externalApplication
);
await
launchUrl
(
uri
,
mode:
LaunchMode
.
externalApplication
);
}
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment