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

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

@@ -46,7 +46,14 @@ namespace TemuKJD.WXForms.ProductForms
{
txtProductName.Text = dbProd.product_name;
txtSpuId.Text = dbProd.spu_id;
this.pictureBox1.ImageLocation = dbProd.main_img.Replace("https", "http");
this.pictureBox1.Tag = 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");
this.txtNotes.Text = dbProd.notes;
this.txtFissionWords.Text = dbProd.fission_words.Replace("fission_goods_names:", "");
@@ -186,7 +193,7 @@ namespace TemuKJD.WXForms.ProductForms
private void pictureBox1_Click(object sender, EventArgs e)
{
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.ImageLocation);
ShowImgForm imgFrom = new ShowImgForm(pictureBox1.ImageLocation.IsNullOrEmpty() ? pictureBox1.Tag.ParseToString() : pictureBox1.ImageLocation);
imgFrom.ShowDialog();
}