Explorar el Código

fixbug

pull/1/head
yuan_rh hace 4 años
padre
commit
a0a82fef9f
Se han modificado 2 ficheros con 6 adiciones y 1 borrados
  1. +1
    -1
      handle/handle.go
  2. +5
    -0
      main.go

+ 1
- 1
handle/handle.go Ver fichero

@@ -222,7 +222,7 @@ func DownCommand(conn *websocket.Conn, hash, projectName, fileName, dir string)
log.Println("下载成功")
}

time.Sleep(time.Duration(6)*time.Second)
//time.Sleep(time.Duration(6)*time.Second)

defer close(progress)



+ 5
- 0
main.go Ver fichero

@@ -21,6 +21,11 @@ func main() {
config.InitConfig()

//日志设置
_,err := os.Stat(config.LocalWorkSpaceDir)
if err != nil {
//创建文件目录
os.MkdirAll(config.LocalWorkSpaceDir, os.ModePerm)
}

logpath :=config.LocalWorkSpaceDir+"\\"+"fts.log"
logFile, err := os.OpenFile(logpath, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0644)


Cargando…
Cancelar
Guardar