|
|
|
|
@ -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);
|
|
|
|
|
|