Explorar o código

test: 采集时间限制

HeWang hai 5 meses
pai
achega
4432f666f3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/pji/pji_time/main/main.go

+ 1 - 1
tools/pji/pji_time/main/main.go

@@ -78,7 +78,7 @@ func IsTimeAllowed(currentTime time.Time, startStr, endStr string) bool {
 }
 
 func main() {
-	if len(os.Args) == 2 {
+	if len(os.Args) == 3 {
 		fmt.Println("接收到的参数为:", os.Args[1:])
 	} else {
 		fmt.Println("参数数量应该为【2】,请输入开始时间和结束时间")