Explorar o código

缓存文件大小设置

xingzai %!s(int64=3) %!d(string=hai) anos
pai
achega
731f3ccd05
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/article.go

+ 1 - 1
controllers/article.go

@@ -858,7 +858,7 @@ func (this *ArticleController) Pdfwatermark() {
 		}
 		defer res.Body.Close()
 		// 获得get请求响应的reader对象
-		reader := bufio.NewReaderSize(res.Body, 64*1024)
+		reader := bufio.NewReaderSize(res.Body, 32*1024)
 		file, err := os.Create(oldFile)
 		if err != nil {
 			br.Msg = "下载失败"