fix(client): 继续支付补 launchUrl 异常兜底 + 我的 hub 授权管理图标统一 shield

- license_orders_tab _continuePay 包 try/catch,打开失败出 toast 不静默
- me hub 授权管理图标 trendingUp→shield,与侧边栏一致;me golden ×3 同步更新

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-11 02:11:53 +08:00
parent 18b97d5d35
commit 51c0cfda56
5 changed files with 8 additions and 2 deletions
@@ -717,7 +717,13 @@ class _LicenseOrdersTabState extends ConsumerState<LicenseOrdersTab> {
if (mounted) showDsToast(context, '支付链接不可用,请刷新后重试');
return;
}
await launchUrl(Uri.parse(r.payUrl), mode: LaunchMode.externalApplication);
try {
await launchUrl(Uri.parse(r.payUrl), mode: LaunchMode.externalApplication);
} catch (e) {
if (mounted) {
showDsToast(context, '无法打开支付链接,请刷新后重试', bg: context.tokens.danger);
}
}
}
}
+1 -1
View File
@@ -69,7 +69,7 @@ class MeScreen extends ConsumerWidget {
label: '用户管理',
onTap: () => context.go('/settings/users')),
MHubItem(
icon: LucideIcons.trendingUp,
icon: LucideIcons.shield,
label: '授权管理',
onTap: () => context.go('/me/license')),
MHubItem(
Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB