This commit is contained in:
suyl
2021-04-28 11:09:38 +08:00
parent 9dc7291c29
commit 9a725ed9c2

View File

@@ -2011,10 +2011,10 @@ func ShareUnionLink(ctx *jxcontext.Context, jobID, shareType, linkType, resource
if link, err = handler.ShareUnionLink(ctx, linkType, job.UnionActID, sid, userID, resourceType); err == nil {
if vendorID == model.VendorIDMTWM || vendorID == model.VendorIDTB {
if linkType == partner.LinkTypeWeiXinMini {
if resBinary, _, err := jxutils.DownloadFileByURL(link + "?imageView2/1/w/100/h/100/q/75"); err == nil {
if resBinary, _, err := jxutils.DownloadFileByURL(link); err == nil {
if downloadURL, err := jxutils.UploadExportContent(resBinary, utils.Int64ToStr(time.Now().Unix())+link[strings.LastIndex(link, "/")+1:len(link)]); err == nil {
if err == nil {
link = jxutils.MixWatermarkImg(downloadURL, job.UnionImg, job.UnionQrcodePosition)
link = jxutils.MixWatermarkImg(downloadURL+"?imageView2/1/w/100/h/100/q/75", job.UnionImg, job.UnionQrcodePosition)
}
}
}