From e31fc65044dc6b7725f1ec61e3d1ce33e087e9b3 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 20 Jul 2022 09:23:24 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=AF=BC=E5=87=BA=20PDF=20=E5=92=8C=20?= =?UTF-8?q?Word=20=E6=97=B6=E6=94=AF=E6=8C=81=E8=A6=86=E7=9B=96=E5=B7=B2?= =?UTF-8?q?=E6=9C=89=E6=96=87=E4=BB=B6=20https://github.com/siyuan-note/si?= =?UTF-8?q?yuan/issues/5309?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/export.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/api/export.go b/kernel/api/export.go index 940842772..04f679d4d 100644 --- a/kernel/api/export.go +++ b/kernel/api/export.go @@ -137,7 +137,7 @@ func exportDocx(c *gin.Context) { savePath := arg["savePath"].(string) err := model.ExportDocx(id, savePath) if nil != err { - ret.Code = -1 + ret.Code = 1 ret.Msg = err.Error() ret.Data = map[string]interface{}{"closeTimeout": 7000} return