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:
@@ -717,7 +717,13 @@ class _LicenseOrdersTabState extends ConsumerState<LicenseOrdersTab> {
|
|||||||
if (mounted) showDsToast(context, '支付链接不可用,请刷新后重试');
|
if (mounted) showDsToast(context, '支付链接不可用,请刷新后重试');
|
||||||
return;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class MeScreen extends ConsumerWidget {
|
|||||||
label: '用户管理',
|
label: '用户管理',
|
||||||
onTap: () => context.go('/settings/users')),
|
onTap: () => context.go('/settings/users')),
|
||||||
MHubItem(
|
MHubItem(
|
||||||
icon: LucideIcons.trendingUp,
|
icon: LucideIcons.shield,
|
||||||
label: '授权管理',
|
label: '授权管理',
|
||||||
onTap: () => context.go('/me/license')),
|
onTap: () => context.go('/me/license')),
|
||||||
MHubItem(
|
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 |
Reference in New Issue
Block a user