Commit 2776437c by Li Feifei

debug

parent b41bb7fe
Pipeline #17124 passed with stages
in 1 minute 6 seconds
......@@ -3,6 +3,7 @@ package http
import (
"io"
"os"
"runtime"
"time"
"github.com/gogf/gf/frame/g"
......@@ -23,6 +24,10 @@ func handle(response *ghttp.ClientResponse, err error) ([]byte, error) {
// 下载文件
func Download(file string, path string) error {
defer func() {
runtime.GC()
runtime.GC()
}()
g.Log().Async().Infof("Download File: %s", file)
resp, err := g.Client().Get(file)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment