Skip to content

Commit

Permalink
fix: Interactive cli input 'all' error.
Browse files Browse the repository at this point in the history
  • Loading branch information
pashifika committed Sep 9, 2018
1 parent 0ce8df6 commit 0f94197
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ func main() {
fmt.Print("请输入需要下载的麻将脸类型ID: ")
default: // Download process
if input != "all" {
if _, ok := sdl.Stype[input]; !ok {
fmt.Println("输入错误, 请再次输入!")
fmt.Print("请输入需要下载的麻将脸类型ID: ")
continue
}
dlList = []string{input}
} else {
dlList = allList
}
if _, ok := sdl.Stype[input]; !ok {
fmt.Println("输入错误, 请再次输入!")
fmt.Print("请输入需要下载的麻将脸类型ID: ")
continue
}

fmt.Println("下载程序干活中,请勿关闭本窗口...")
// multi limit setting start
Expand Down Expand Up @@ -115,7 +115,7 @@ func main() {
} else {
count.Add(1)
}
}(smiliesURL_root + sdl.Stype[stID].DirPath + "/" + fdl.FileName, fdl.Name)
}(smiliesURL_root+sdl.Stype[stID].DirPath+"/"+fdl.FileName, fdl.Name)
}

// Wait all download thread complete
Expand Down

0 comments on commit 0f94197

Please sign in to comment.