From d48b54c358a3ac830d204a327b24273d8c2064b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 1 Apr 2020 09:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxutils/datares/datares.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/business/jxutils/datares/datares.go b/business/jxutils/datares/datares.go index 506975536..ca6f8fb74 100644 --- a/business/jxutils/datares/datares.go +++ b/business/jxutils/datares/datares.go @@ -77,6 +77,8 @@ func RegisterDataResource(ctx *jxcontext.Context, name, resourceURL, mimeType, h return nil, fmt.Errorf("MIME type:%s非法,当前只支持:%s", mimeType, model.GetValidMimeTypeDesc()) } img, _, err := Binary2Image(resBinary, mimeType) + fmt.Println("testtttt", img) + fmt.Println("testtttt", err) if err != nil { return nil, err } @@ -136,9 +138,6 @@ func TryRegisterDataResource(ctx *jxcontext.Context, name, resourceURL string, i if err != nil { return nil, err } - fmt.Println("test11", resBinary) - fmt.Println("test22", *dataRes) - fmt.Println("test33", hashCode) return RegisterDataResource(ctx, name, resourceURL, http.DetectContentType(resBinary), hashCode, resBinary, imgType, isAsyncUpload2Vendor) }