更新build-apk-split.sh脚本以添加错误处理和构建完成时间输出;在ScanQrCodePage中增强玩家ID验证,添加无效凭证提示。
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user