Explorar o código

提交前睡眠

jason %!s(int64=2) %!d(string=hai) anos
pai
achega
8f4106feeb
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      student/student.go

+ 3 - 1
student/student.go

@@ -1862,10 +1862,12 @@ func examHandle(wd selenium.WebDriver, courseId, moduleId, id string, qustionM m
 	}
 
 	// 提交试卷
+
+	fmt.Printf("开始提交\n")
 	if config.Conf.SleepTime > 0 {
+		fmt.Printf("等待%d秒提交\n", config.Conf.SleepTime)
 		time.Sleep(time.Duration(config.Conf.SleepTime) * time.Second)
 	}
-	fmt.Printf("开始提交\n")
 	err = examHandleSubmit(wd)
 	fmt.Printf("examHandleSubmit:%v\n", err)
 	if false {