更新build-apk-split.sh脚本以添加错误处理和构建完成时间输出;在ScanQrCodePage中增强玩家ID验证,添加无效凭证提示。

This commit is contained in:
2026-07-17 12:19:57 +08:00
parent 1f9c5af51b
commit 62d717c3ee
2 changed files with 11 additions and 5 deletions
+5
View File
@@ -1 +1,6 @@
#!/bin/sh
set -e
flutter build apk --release --split-per-abi flutter build apk --release --split-per-abi
echo "构建完成时间: $(date '+%Y-%m-%d %H:%M:%S')"
@@ -125,12 +125,13 @@ class _AuthPageWidgetState extends ConsumerState<ScanQrCodePage> {
final String? playerId = await AppQrScannerDialog.show( final String? playerId = await AppQrScannerDialog.show(
context, context,
); );
if (playerId == null || playerId.isEmpty) return; if (playerId == null || playerId.isEmpty) {
AppToast.show('无效的参赛凭证');
return;
}
/// TODO /// TODO
AppNavigator.push( AppNavigator.push(EventInfoPage(playerId: playerId));
EventInfoPage(playerId: '74300708945530955'),
);
}, },
variant: AppButtonVariant.secondary, variant: AppButtonVariant.secondary,
), ),