feat(training): 接入真实培训接口与学习答题恢复
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user