diff --git a/business/jxutils/datares/datares.go b/business/jxutils/datares/datares.go index edeab5a48..65ce159ca 100644 --- a/business/jxutils/datares/datares.go +++ b/business/jxutils/datares/datares.go @@ -80,10 +80,14 @@ func RegisterDataResource(ctx *jxcontext.Context, name, resourceURL, mimeType, h if err != nil { return nil, err } + fmt.Println("test11111111111111111") + img.Bounds().Dx() if imgType == model.ImgTypeMain { + fmt.Println("test222222222222222222222") if img.Bounds().Dx() != MainImgWidth || img.Bounds().Dy() != MainImgHeight { return nil, fmt.Errorf("图片大小:%dx%d非法,要求必须:%dx%d", img.Bounds().Dx(), img.Bounds().Dy(), MainImgWidth, MainImgHeight) } + fmt.Println("test33333333333333333333333333") } dataRes = &model.DataResource{ Name: name, @@ -92,9 +96,7 @@ func RegisterDataResource(ctx *jxcontext.Context, name, resourceURL, mimeType, h MainURL: resourceURL, UseType: int8(imgType), } - fmt.Println("test222222222222222222222") vendorID := jxutils.GuessDataResourceVendor(resourceURL) - fmt.Println("test11111111111111111111", vendorID) switch vendorID { case model.VendorIDQiNiuCloud: dataRes.QiniuURL = resourceURL