上传图片增加银豹平台

This commit is contained in:
苏尹岚
2020-04-01 09:22:26 +08:00
parent 14c9c57ced
commit 23b857b901
2 changed files with 3 additions and 3 deletions

View File

@@ -77,9 +77,6 @@ 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("test11111111111111111111111111111111")
img.Bounds()
fmt.Println("test2122222222222222222222222222222222")
if err != nil {
return nil, err
}

View File

@@ -38,6 +38,9 @@ var (
model.VendorIDEBAI: []string{
"image-star.elemecdn.com",
},
model.VendorIDYB: []string{
"pospalstoreimg.area27.pospal.cn",
},
}
)