feat(training): 接入真实培训接口与学习答题恢复

This commit is contained in:
2026-10-14 16:18:48 +08:00
parent 8862ae5401
commit 01068bb24e
28 changed files with 4945 additions and 238 deletions
@@ -21,7 +21,7 @@ enum HomeRouteHandler {
return
}
if uri != "pilot_controller", uri != "wallet", AppStore.shared.session.currentScenicId <= 0 {
if uri != "pilot_controller", uri != "wallet", uri != "/training", AppStore.shared.session.currentScenicId <= 0 {
showToast("请先选择景区", from: viewController)
return
}
@@ -40,6 +40,7 @@ enum HomeRouteHandler {
case "message_center":
viewController.navigationController?.pushViewController(MessageCenterViewController(), animated: true)
case "/training":
guard AppStore.shared.session.accountType == .storeUser else { return }
viewController.navigationController?.pushViewController(TrainingCenterViewController(), animated: true)
case "space_settings":
viewController.navigationController?.pushViewController(ProfileSpaceSettingsViewController(), animated: true)