Merge pull request 'Version2.0' (#4) from develop into main

main
hnu202326010425 7 months ago
commit 0200fecc26

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

Loading…
Cancel
Save