From a605f037f752b0be6d8163658716565840f39159 Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 15 Jul 2020 16:02:25 +0800 Subject: [PATCH] 'commit' --- dsSupport/Test/PreviewTest/PreviewTest.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dsSupport/Test/PreviewTest/PreviewTest.go b/dsSupport/Test/PreviewTest/PreviewTest.go index ca75db3f..006ba408 100644 --- a/dsSupport/Test/PreviewTest/PreviewTest.go +++ b/dsSupport/Test/PreviewTest/PreviewTest.go @@ -14,7 +14,6 @@ import ( */ func showPreview(input string){ uEnc := base64.URLEncoding.EncodeToString([]byte(input)) - fmt.Println(uEnc) //生成预览OFFICE的服务地址 url := "http://10.10.24.100:9000/support/preview/previewOffice" resp, _ := http.Get(url+"?p="+uEnc) @@ -28,7 +27,7 @@ func main() { // 如果要用在url中,需要使用URLEncoding //input:="C:\\Users\\Administrator\\Desktop\\技术讨论会\\20A4782A-512C-40ED-8AF9-FCFC7CD29E5B.docx" //showPreview(input) - + //(2)传入http参数 //input="https://dsideal.obs.cn-north-1.myhuaweicloud.com/Material/02/0200C9BE-07C6-4EFC-A945-8554C7D41790.doc" //showPreview(input)