代理版本调试

This commit is contained in:
wule_5900x committed 2026-07-05 22:53:54 +08:00
1 parent 0b325e7cd8
commit 8ff2508632
36 files changed
+1049 -342

No files matched your search

@@ -58,7 +58,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
private void btnOk_Click(object sender, EventArgs e)
{
//var url = BaseClass.BuildPDDObjString("product/mdy_product_notes");
var url = BaseClass.BuildPDDObjString("product/mdy_db_product");
var data = UserLogin.GetSignaturex() +
"&db_id=" + dbProd.id + "&notes=" + this.txtNotes.Text.Trim();
@@ -70,6 +69,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
data += "&fission_words=" + "fission_goods_names:" + this.txtFissionWords.Text.Trim();
data += "&head_words=" + this.txtHeadWords.Text.Trim();
data += "&end_words=" + this.txtEndWords.Text.Trim();
data += "&add_user_name" + dbProd.add_user_name;
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
@@ -310,8 +310,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
addUserName = BaseClass.ParentAuthority.Contains("机会商品采集") ? ("admin," + BaseClass.ParentUserName) : "admin";
PDDDBProdListForm.GetPDDProductGroup(cmbGroupFilter, "", "", addUserName);
// 刷新类目信息
GetPddProductCate();
// 刷新类目信息 (已通过接口抓取所有拼多多类目,不再实时从库中获取)
//GetPddProductCate();
Invoke(new Action(() => { cmbSourceType_SelectedIndexChanged(null, null); }));
});
}
@@ -321,30 +321,30 @@ namespace TemuKJD.PDDForms.ProductSelectForms
/// </summary>
void GetPddProductCate()
{
var url = BaseClass.BuildObjString("product/get_product_cates");
var data = UserLogin.GetSignaturex();
var html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
html = GetHtml.PostUtf8(url, data);
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
{
//BaseMsgForm.ShowError("商品分组获取失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
}
else
{
//Invoke(new Action(() =>
//{
// cmbCateFilter1.Items.Clear();
// var groups = BaseRegex.GetStringJson(ref html, "data");
// foreach (var item in groups.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
// {
// cmbCateFilter1.Items.Add(item);
// }
// cmbCateFilter1.Items.Add("");
//}));
}
//var url = BaseClass.BuildObjString("product/get_product_cates");
//var data = UserLogin.GetSignaturex();
//var html = GetHtml.PostUtf8(url, data);
//if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// html = GetHtml.PostUtf8(url, data);
//if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
// html = GetHtml.PostUtf8(url, data);
//if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
//{
// //BaseMsgForm.ShowError("商品分组获取失败,请重试!" + BaseRegex.GetStringJson(ref html, "msg"));
//}
//else
//{
// //Invoke(new Action(() =>
// //{
// // cmbCateFilter1.Items.Clear();
// // var groups = BaseRegex.GetStringJson(ref html, "data");
// // foreach (var item in groups.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries))
// // {
// // cmbCateFilter1.Items.Add(item);
// // }
// // cmbCateFilter1.Items.Add("");
// //}));
//}
}
private void RefreshShop()