资质图上次传75% 手表上传

This commit is contained in:
wule committed 2026-08-11 02:19:09 +08:00
1 parent 35240505e3
commit a568c685ee
10 files changed
+307 -201

No files matched your search

@@ -41,11 +41,6 @@ namespace TemuKJD.WXForms.AdminForms
this.btnEmpty = new DevComponents.DotNetBar.PanelEx();
this.pbLoading = new System.Windows.Forms.PictureBox();
this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colCat1Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colChangeImage = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.splitContainer3 = new System.Windows.Forms.SplitContainer();
this.txtBottom = new System.Windows.Forms.TextBox();
@@ -65,6 +60,13 @@ namespace TemuKJD.WXForms.AdminForms
this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage();
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
this.panel3 = new System.Windows.Forms.Panel();
this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.colCat1Name = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colImgMd5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.colImg = new System.Windows.Forms.DataGridViewImageColumn();
this.colChangeImage = new System.Windows.Forms.DataGridViewLinkColumn();
this.colDelete = new System.Windows.Forms.DataGridViewLinkColumn();
this.colMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
@@ -229,6 +231,8 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvShop.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.colSelect,
this.colCat1Name,
this.colImgMd5,
this.colImg,
this.colChangeImage,
this.colDelete,
this.colMsg});
@@ -244,44 +248,6 @@ namespace TemuKJD.WXForms.AdminForms
this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick);
this.dgvShop.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgvShop_CellMouseDown);
//
// colSelect
//
this.colSelect.FillWeight = 16F;
this.colSelect.HeaderText = "选";
this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true;
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colCat1Name
//
this.colCat1Name.FillWeight = 70F;
this.colCat1Name.HeaderText = "类目名称";
this.colCat1Name.Name = "colCat1Name";
this.colCat1Name.ReadOnly = true;
//
// colChangeImage
//
this.colChangeImage.FillWeight = 46F;
this.colChangeImage.HeaderText = "更改图片";
this.colChangeImage.Name = "colChangeImage";
this.colChangeImage.ReadOnly = true;
this.colChangeImage.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colChangeImage.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colDelete
//
this.colDelete.FillWeight = 46F;
this.colDelete.HeaderText = "删除";
this.colDelete.Name = "colDelete";
this.colDelete.ReadOnly = true;
//
// colMsg
//
this.colMsg.HeaderText = "操作结果";
this.colMsg.Name = "colMsg";
this.colMsg.ReadOnly = true;
//
// splitContainer2
//
this.splitContainer2.BackColor = System.Drawing.Color.White;
@@ -540,6 +506,62 @@ namespace TemuKJD.WXForms.AdminForms
this.panel3.Size = new System.Drawing.Size(1271, 576);
this.panel3.TabIndex = 35;
//
// colSelect
//
this.colSelect.FillWeight = 16F;
this.colSelect.HeaderText = "选";
this.colSelect.Name = "colSelect";
this.colSelect.ReadOnly = true;
this.colSelect.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colSelect.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colCat1Name
//
this.colCat1Name.FillWeight = 70F;
this.colCat1Name.HeaderText = "类目名称";
this.colCat1Name.Name = "colCat1Name";
this.colCat1Name.ReadOnly = true;
//
// colImgMd5
//
this.colImgMd5.FillWeight = 50F;
this.colImgMd5.HeaderText = "图片码";
this.colImgMd5.Name = "colImgMd5";
this.colImgMd5.ReadOnly = true;
//
// colImg
//
this.colImg.FillWeight = 40F;
this.colImg.HeaderText = "图片";
this.colImg.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Zoom;
this.colImg.Name = "colImg";
this.colImg.ReadOnly = true;
this.colImg.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colImg.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colChangeImage
//
this.colChangeImage.FillWeight = 46F;
this.colChangeImage.HeaderText = "编辑图片";
this.colChangeImage.Name = "colChangeImage";
this.colChangeImage.ReadOnly = true;
this.colChangeImage.Resizable = System.Windows.Forms.DataGridViewTriState.True;
this.colChangeImage.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
//
// colDelete
//
this.colDelete.FillWeight = 46F;
this.colDelete.HeaderText = "删除";
this.colDelete.Name = "colDelete";
this.colDelete.ReadOnly = true;
this.colDelete.Visible = false;
//
// colMsg
//
this.colMsg.HeaderText = "操作结果";
this.colMsg.Name = "colMsg";
this.colMsg.ReadOnly = true;
//
// WXAdminQualificationImageForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -594,11 +616,6 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.Panel panel4;
private System.Windows.Forms.SplitContainer splitContainer3;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colCat1Name;
private System.Windows.Forms.DataGridViewLinkColumn colChangeImage;
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox comboBox1;
@@ -613,5 +630,12 @@ namespace TemuKJD.WXForms.AdminForms
private System.Windows.Forms.TextBox txtLeft;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect;
private System.Windows.Forms.DataGridViewTextBoxColumn colCat1Name;
private System.Windows.Forms.DataGridViewTextBoxColumn colImgMd5;
private System.Windows.Forms.DataGridViewImageColumn colImg;
private System.Windows.Forms.DataGridViewLinkColumn colChangeImage;
private System.Windows.Forms.DataGridViewLinkColumn colDelete;
private System.Windows.Forms.DataGridViewTextBoxColumn colMsg;
}
}
@@ -1,4 +1,5 @@
using AllBase;
using AllBase.Model.DBModel;
using AllBase.Model.Param.TemuProductManage;
using AllBase.Model.Result;
using NaiBa.Util;
@@ -22,6 +23,7 @@ using TemuKJD.BLL;
using TemuKJD.Extension;
using TemuKJD.WXForms.ShopForms;
using Work;
using Work.BLL.Tools;
namespace TemuKJD.WXForms.AdminForms
{
@@ -33,7 +35,7 @@ namespace TemuKJD.WXForms.AdminForms
get { if (inst == null) inst = new WXAdminQualificationImageForm(); return inst; }
set { inst = value; }
}
public static ConcurrentList<ShopLoginInfo> lstAdminShopInfo { get; set; } = new ConcurrentList<ShopLoginInfo>();
public static ConcurrentList<wx_qualification_image_info> lstWxQualificationImageInfo { get; set; } = new ConcurrentList<wx_qualification_image_info>();
public WXAdminQualificationImageForm()
{
@@ -73,59 +75,37 @@ namespace TemuKJD.WXForms.AdminForms
{
this.pbLoading.Visible = true;
this.dgvShop.Rows.Clear();
lstAdminShopInfo.Clear();
lstWxQualificationImageInfo.Clear();
}));
}
else
{
this.pbLoading.Visible = true;
this.dgvShop.Rows.Clear();
lstAdminShopInfo.Clear();
lstWxQualificationImageInfo.Clear();
}
Task.Run(() =>
{
int pageCount;
decimal seconds = 0;
var list = AdminGetServerQualificationImageLst(out pageCount, out seconds, page, ucSplitPage1.PageSize);
lstAdminShopInfo.AddRange(list);
lstWxQualificationImageInfo.AddRange(list);
this.ucSplitPage1.TotalPage = pageCount;
foreach (var shop in lstAdminShopInfo)
foreach (var image in lstWxQualificationImageInfo)
{
Invoke(new Action(() =>
{
int rowIndex = this.dgvShop.Rows.Add(
shopIdList.Contains(shop.ShopId + shop.UserName),
shop.LoginName,
shop.ShopId,
shop.ShopAccount,
shop.Notes,
shop.GroupName,
"-",
shop.AddProductRemaining,
"+",
//"±",
shop.Cookies,
shop.UserName,
shop.SubUserName,
shop.UploadAccount,
shop.BuyAccount,
shop.ChatAccount,
"",
"进入",
"检测",
string.IsNullOrWhiteSpace(shop.LoginStatus) ? "未登录" : shop.LoginStatus.Trim(),
string.IsNullOrWhiteSpace(shop.LoginStatus2) ? "国际版未登录" : shop.LoginStatus2.Trim(),
"购买",
"多重登录",
shop.ApiAuthStatus,
shop.BuyApiAuth.ApiAuthStatus,
"导入Cookie",
"复制Cookie",
"上传",
shop.OperateSubSaName,
false,
image.cat_name,
image.img_md5,
Base64ChangeImgUrl.Base64ToImage(image.img_thumb_base64),
"编辑",
"删除");
var row = dgvShop.Rows[rowIndex];
row.Height = 60;
}));
}
@@ -165,6 +145,7 @@ namespace TemuKJD.WXForms.AdminForms
if (e.ColumnIndex < 0 || e.RowIndex < 0)
return;
string headerText = dgvShop.Columns[e.ColumnIndex].HeaderText;
var row = dgvShop.Rows[e.RowIndex];
switch (headerText)
{
@@ -185,12 +166,13 @@ namespace TemuKJD.WXForms.AdminForms
//if (ShopBLL.AdminDelServerShop(shop))
// SearchImg(this.ucSplitPage1.CurrentPage);
break;
case "更改图片":
IsOperate = true;
case "编辑图片":
var image = lstWxQualificationImageInfo.FirstOrDefault(i => i.img_md5 == row.Cells["colImgMd5"].Value.ParseToString());
if (image != null)
{
//UploadProduct(shop);
image.img_base64.IsNullOrEmpty();
}
IsOperate = false;
break;
case "":
dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value = !(bool)dgvShop.Rows[e.RowIndex].Cells["colSelect"].Value;
@@ -215,32 +197,28 @@ namespace TemuKJD.WXForms.AdminForms
return shopNameList;
}
public List<ShopLoginInfo> AdminGetServerQualificationImageLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
public List<wx_qualification_image_info> AdminGetServerQualificationImageLst(out int pageCount, out decimal seconds, int page = 1, int pageSize = 50)
{
List<ShopLoginInfo> list = new List<ShopLoginInfo>();
List<wx_qualification_image_info> list = new List<wx_qualification_image_info>();
pageCount = 1;
seconds = 0;
var url = BaseClass.BuildObjString("shop/admin_get_server_qualification_image_list");
var url = BaseClass.BuildObjString("product/wx_get_qualification_image");
var data = UserLogin.GetSignaturex() +
"&page=" + page +
"&page_size=" + pageSize +
"&search_cat_name=" + txtCatName.Text.Trim();
if (BaseClass.SaLevel > 1)
data += "&operate_sub_sa_name=" + BaseClass.UserName;
"&page_size=" + pageSize;
data += "&is_detail=true";
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html)
|| !html.Contains("shop_id") || !html.Contains("shop_account") || !html.Contains("login_pass"))
{
if (!html.Contains("\"code\":200"))
return list;
}
int count = BaseRegex.GetIntJson(ref html, "count");
pageCount = Math.Ceiling(1.0 * count / pageSize).ParseToInt();
pageCount = Math.Max(pageCount, 1);
seconds = BaseRegex.GetDecimalJson(ref html, "seconds");
return ShopBLL.DeserializationShop(html);
JObject jObj = JsonHelper.JObjectParse(html);
return JsonHelper.DeserializeJsonToList<wx_qualification_image_info>(jObj["data"].ParseToString());
}
private void dgvShop_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
@@ -123,6 +123,12 @@
<metadata name="colCat1Name.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colImgMd5.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colImg.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="colChangeImage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>