From 6df7d4820c4179f665f78f8fb73f78c7db58ae4f Mon Sep 17 00:00:00 2001 From: Violet <3551664030@qq.com> Date: Mon, 29 Sep 2025 00:43:35 +0800 Subject: [PATCH] Version2.0 --- src/SysFunc.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SysFunc.java b/src/SysFunc.java index 328a8e4..9266825 100644 --- a/src/SysFunc.java +++ b/src/SysFunc.java @@ -98,7 +98,9 @@ public class SysFunc { while (true) { System.out.print(BOLD + BLUE + "> " + RESET); String choice_type = scanner.nextLine(); - if (choice_type.length() >= 5 && choice_type.substring(0, 3).equals("切换为") && typeMap.containsKey(choice_type.substring(3))) { + if (choice_type.length() >= 5 + && choice_type.substring(0, 3).equals("切换为") + && typeMap.containsKey(choice_type.substring(3))) { type = typeMap.get(choice_type.substring(3)); if (type == 1) { teacher = new PrimaryTea(teacher.name, teacher.password, teacher.path); -- 2.34.1