Commit 934ce27a by tanghuan

URL增加时间戳

1 parent e47626d3
...@@ -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);
} }
......
...@@ -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);
} }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!