修复图片上传bug

This commit is contained in:
wule committed 2026-09-04 17:56:07 +08:00
1 parent a2d0da4001
commit c75a49a0b1
1 file changed
+9 -3
@@ -1317,7 +1317,7 @@ namespace TemuKJD.WXForms.ProductForms
Invoke(new Action(() => { shopRow.Cells["colSelect"].Value = false; }));
}
}
else
else if (result.Contains("\"success\":true"))
{
shop.upLimitRetryCount = Math.Max(0, shop.upLimitRetryCount - 1);
}
@@ -2651,8 +2651,14 @@ namespace TemuKJD.WXForms.ProductForms
var aiGalleries = prodInfo.detail.galleries.Where(g => g.type == 1).Take(3).ToList();
foreach (var gallery_item in aiGalleries) // 9张主图
{
string getImgError;
var image = GetHtml.GetUrlImg(gallery_item.url.Replace("https://", "http://"), out getImgError);
imgId++;
string getImgError;
var imgUrl = gallery_item.url;
{
if (!imgUrl.Contains("wxapp") && imgUrl.Contains("mmecimage.cn"))
imgUrl = imgUrl.Replace("https://", "http://");
}
var image = GetHtml.GetUrlImg(imgUrl, out getImgError);
var imageBg = new Bitmap(800, 800);
if (!string.IsNullOrEmpty(getImgError) || image == null)
{