优化微信图片不能显示的问题

This commit is contained in:
wule committed 2026-08-24 20:38:22 +08:00
1 parent 9e71c54414
commit 57e9190241
9 files changed
+126 -56

No files matched your search

@@ -51,7 +51,13 @@ namespace TemuKJD.WXForms.ProductForms
{
txtProductName.Text = dbProd.product_name;
txtSpuId.Text = dbProd.spu_id;
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
if (dbProd.main_img.Contains("wxapp"))
{
string getImgError = "";
this.pictureBox1.Image = ImageBuild.LoadBitmapLoadBitmipImageFromUrl(dbProd.main_img, out getImgError);
}
else
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
fillWxCate();
string catName = (dbProd.cat_name ?? dbProd.cat_id) + "(未识别)";