!15 打开文件没关闭

Merge pull request !15 from hello/master
This commit is contained in:
hello
2019-01-01 19:45:46 +08:00
committed by John

View File

@ -35,6 +35,7 @@ func EncryptFile(path string) string {
if e != nil {
return ""
}
defer f.Close()
h := md5.New()
_, e = io.Copy(h, f)
if e != nil {