加入微信客服相关功能 40%

This commit is contained in:
wule committed 2026-01-17 10:36:56 +08:00
1 parent f71cb1bba8
commit c05c7e4f23
93 files changed
+2824 -356

No files matched your search

+46 -42
View File
@@ -784,55 +784,59 @@ namespace TemuKJD.Extension
}
foreach (DataGridViewRow row in rowLst)
{
if (row.Index > 1 && row.Cells[imgColumn].Displayed == false)
dgv.Invoke(new Action(() =>
{
if (row.Index > 1 && row.Cells[imgColumn].Displayed == false)
{
//dgv.Invoke(new Action(() =>
//{
try
{
if (row.Index > 0)
row.Cells[imgColumn].Value = defaultBitmap;
}
catch
{
}
//}));
return;
}
if (row.Index < 0)
return;
if (row.Index >= 0 && row.Cells[imgColumn].Value != null && row.Cells[imgColumn].Value != defaultBitmap)
return;
Image image = defaultBitmap;
if (row.Index >= 0)
{
string imgUrl = row.Cells[imgPathColumn]?.Value.ParseToString();
if (isSetHttpsHttp == true)
imgUrl = imgUrl.Replace("https://", "http://");
string getImgError = "";
if (!string.IsNullOrWhiteSpace(imgUrl))
{
image = GetHtml.GetUrlImg(imgUrl, out getImgError);
if (!string.IsNullOrEmpty(getImgError))
//BaseMsgForm.ShowError("图片加载失败 " + getImgError);
image = TemuKJD.Properties.Resources.errpic;
}
}
try
{
dgv.Invoke(new Action(() =>
{
row.Cells[imgColumn].Value = defaultBitmap;
}));
}
catch
{
}
continue;
}
if (row.Index < 0)
continue;
if (row.Index >= 0 && row.Cells[imgColumn].Value != null && row.Cells[imgColumn].Value != defaultBitmap)
continue;
Image image = defaultBitmap;
if (row.Index >= 0)
{
string imgUrl = row.Cells[imgPathColumn]?.Value.ParseToString();
if (isSetHttpsHttp == true)
imgUrl = imgUrl.Replace("https://", "http://");
string getImgError = "";
if (!string.IsNullOrWhiteSpace(imgUrl))
{
image = GetHtml.GetUrlImg(imgUrl, out getImgError);
if (!string.IsNullOrEmpty(getImgError))
//BaseMsgForm.ShowError("图片加载失败 " + getImgError);
image = TemuKJD.Properties.Resources.errpic;
}
}
try
{
dgv.Invoke(new Action(() =>
{
//dgv.Invoke(new Action(() =>
//{
if (row.Index >= 0)
{
row.Cells[imgColumn].Value = image;
}
}));
}
catch
{
}
//}));
}
catch
{
}
}));
}
});
}