@@ -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】,请输入开始时间和结束时间")